Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

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

    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

    #2
    You can explicitly specify skipRowCount on the operationBinding for the request to... skip the row count query. You also should not need an explicit startRow/endRow on your request.

    Regards
    Isomorphic Software

    Comment

    Working...
    X