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

big data fetch getTotalRows() problem.

$
0
0
SmartClient Version: v9.1p_2014-03-04/PowerEdition Deployment (built 2014-03-04)
Firefox 25

Code:

DSRequest req = new DSRequest();
                req.setStartRow(0);
                req.setEndRow(1);
                presenter.getView().getMessageGrid().getDataSource().fetchData(crit, new DSCallback() {
                        @Override
                        public void execute(DSResponse dsResponse, Object data, DSRequest dsRequest) {
                                dsResponse.getTotalRows();
                        }
                }, req);

Hi,
I want to check the the number of records that fit the given criteria. So i fetch data with Request range 1. Everything works fine on small data sets, but when the fetch finds more than 200k (or so, the problem occurs for sure for over 200k, might work for smaller sets) records the
Code:

dsResponse.getTotalRows()
method allways returns 21 !?!
Works fine for smaller data sets.

Viewing all articles
Browse latest Browse all 4756

Trending Articles