Hi,
This is modified showcase sample https://www.smartclient.com/smartcli...OperatorFilter
Modification:
imitate server side summary which is issued during filter operation. Below is developer console view with two fetches: one filling first page of the grid and second getting summary record. This is fine.
Now, scroll to the bottom of the grid and inspect console again.
There is a new portion of records fetched due to page scroll. But summary fetch is issued again which should not occur to me.
In our application summary rows from server are widely used and (not surprising) are server resources hungry and time consuming, so repeated every set of records stress the server needlessly.
Thanks,
MichalG
ps tested in showcase version v12.0p_2018-06-28/AllModules Development Only (built 2018-06-28)
This is modified showcase sample https://www.smartclient.com/smartcli...OperatorFilter
Code:
isc.ListGrid.create({ ID: "countryList", width:550, height:300, alternateRecordStyles:true, dataSource: worldDS, showGridSummary: true, summaryRowDataSource: worldDS, summaryRowCriteria: {pk:1}, fields:[ {name:"countryCode", width:60}, {name:"countryName"}, {name:"capital"}, {name:"continent"}, {name:"area"}, {name:"population"} ], autoFetchData: true, showFilterEditor: true, allowFilterOperators: true, initialCriteria: { _constructor: "AdvancedCriteria", operator: "and", criteria: [ { fieldName: "countryName", operator: "iNotContains", value: "i" }, { fieldName: "capital", operator: "iNotStartsWith", value: "p" } ] } });
Code:
showGridSummary: true, summaryRowDataSource: worldDS, summaryRowCriteria: {pk:1},
Now, scroll to the bottom of the grid and inspect console again.
There is a new portion of records fetched due to page scroll. But summary fetch is issued again which should not occur to me.
In our application summary rows from server are widely used and (not surprising) are server resources hungry and time consuming, so repeated every set of records stress the server needlessly.
Thanks,
MichalG
ps tested in showcase version v12.0p_2018-06-28/AllModules Development Only (built 2018-06-28)
Comment