Hi Isomorphic,
please see this online testcase (v12.0p_2021-03-13, also in 13.0d).
When you click "fetchData(SKU > 90000)" twice, the summary row becomes white (unexpected). This is only the case if you use the same criteria (=this button).
If you use different criteria with the "fetchData(unitCost < random)"-Button, the result is as expected (2 fetches). refreshData() also works as expected.
Also, there is some flashing of the summaryRow going on on fetchData() and refreshData() (unexpected). This is not the case with a non-databound summaryRow. In this case the blue summary row is even visible before the 1st fetchData() and always keeps visible (expected).
Additionally I noticed that if you remove summaryRowCriteria (which in this sample does not make sense as there is more than one row returned), the criteria for the dsListGrid_summaryRow request do not include the implicitCriteria set on the ListGrid itself. The docs don't say this would be the case, but I think this would be an improvement, as I think everyone would expect it that way.
Best regards
Blama
please see this online testcase (v12.0p_2021-03-13, also in 13.0d).
When you click "fetchData(SKU > 90000)" twice, the summary row becomes white (unexpected). This is only the case if you use the same criteria (=this button).
If you use different criteria with the "fetchData(unitCost < random)"-Button, the result is as expected (2 fetches). refreshData() also works as expected.
Also, there is some flashing of the summaryRow going on on fetchData() and refreshData() (unexpected). This is not the case with a non-databound summaryRow. In this case the blue summary row is even visible before the 1st fetchData() and always keeps visible (expected).
Additionally I noticed that if you remove summaryRowCriteria (which in this sample does not make sense as there is more than one row returned), the criteria for the dsListGrid_summaryRow request do not include the implicitCriteria set on the ListGrid itself. The docs don't say this would be the case, but I think this would be an improvement, as I think everyone would expect it that way.
Best regards
Blama
Code:
isc.ListGrid.create({ ID: "dsListGrid", width: "100%", height: "100%", autoFetchData: false, dataSource: "supplyItem", implicitCriteria: { _constructor: "AdvancedCriteria", fieldName: "units", operator: "equals", value: "Roll" }, showFilterEditor: true, showGridSummary: true, summaryRowDataSource: "supplyItem", summaryRowCriteria: { _constructor: "AdvancedCriteria", fieldName: "SKU", operator: "equals", value: "45300" } }); isc.IButton.create({ ID: "button", width: 200, title: "fetchData(SKU > 90000)", click: function() { dsListGrid.fetchData({ _constructor: "AdvancedCriteria", fieldName: 'SKU', operator: 'greaterThan', value: '90000' }) } }); isc.IButton.create({ ID: "button2", width: 200, title: "fetchData(unitCost < random)", click: function() { dsListGrid.fetchData({ _constructor: "AdvancedCriteria", fieldName: 'unitCost', operator: 'lessThan', value: Math.random() }) } }); isc.IButton.create({ ID: "button3", width: 200, title: "refreshData()", click: "dsListGrid.refreshData()" }); isc.VLayout.create({ width: "100%", height: "100%", membersMargin: 10, members: [dsListGrid, button, button2, button3] })
Comment