Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

Usage question: How to fetch all rows (rowcount known) from the server

$
0
0
Hello Isomorphic,

I have a settings table that I want to transfer in total at the start of my application with a handcrafted DataSource.fetch(...) (meaning this has nothing to do with a databound widget).

What do I have to do in order to do this in the best possible way? I know there are 40-100 rows to transfer.
Code:

myDS.fetchData(null, null, new DSRequest(DSOperationType.FETCH) {
                        {
                                setProgressiveLoading(true);
                                setStartRow(0);
                                setEndRow(32000);
                        }
                });

Do I need the setEndRow()?
I use setProgressiveLoading(true) on the DSRequest in order to get rid of the COUNT(*) on the server.

Is this correct this way? Would you suggest a different approach?

Thank you & Best regards,
Blama

Viewing all articles
Browse latest Browse all 4756

Trending Articles