Hi Isomorphic,
testing localization for the new groupByMaxRecordsExceededMessage feature I noticed an (unrelated) bug in 12.1p as well as this 12.0p bug.
Please see this modified sample (v12.1p_2024-06-02, also 13.0p and 13.1d) and do the following steps:
Best regards
Blama
testing localization for the new groupByMaxRecordsExceededMessage feature I noticed an (unrelated) bug in 12.1p as well as this 12.0p bug.
Please see this modified sample (v12.1p_2024-06-02, also 13.0p and 13.1d) and do the following steps:
- Start
- Right click "Continent", no grouping possible (expected)
- Click middle button to reduce record count
- Right click "Continent", grouping possible (expected)
- Group by "Continent"
- Click left or right button to bring record count up again
- ListGrid ungroups (expected)
- Other buttons stop working, no requests are being sent (unexpected)
Best regards
Blama
Code:
isc.ListGrid.create({ ID: "filterGrid", width: 850, height: 500, alternateRecordStyles: true, dataSource: worldDS, autoFetchData: true, groupByField: "continent", groupStartOpen: "all", sortField: "continent", groupByMaxRecords: 190, sortByGroupFirst: "true", implicitCriteria: { _constructor: "AdvancedCriteria", operator: "and", criteria: [{ fieldName: "continent", operator: "inSet", value: ["Africa", "Asia", "Australia/Oceania", "Europe", "North America", "South America"] }] }, fields: [{ name: "countryCode", width: 60 }, { name: "government", }, { name: "continent", }, { name: "capital", }, { name: "independence", width: 100 }, { name: "population", width: 100 }, { name: "gdp", width: 85 }] }); // Implicit criteria Buttons isc.IButton.create({ ID: "europeAsiaBtn", width: 250, title: "inSet: AF/AS/AU/EU/NA/SA (=all)", click: function() { filterGrid.setImplicitCriteria({ _constructor: "AdvancedCriteria", operator: "and", criteria: [{ fieldName: "continent", operator: "inSet", value: ["Africa", "Asia", "Australia/Oceania", "Europe", "North America", "South America"] }] }); } }); isc.IButton.create({ ID: "europeAsiaAusBtn", width: 250, title: "inSet: AS/AU/EU/NA/SA", click: function() { filterGrid.setImplicitCriteria({ _constructor: "AdvancedCriteria", operator: "and", criteria: [{ fieldName: "continent", operator: "inSet", value: ["Asia", "Australia/Oceania", "Europe", "North America", "South America"] }] }); } }); isc.IButton.create({ ID: "allCtnBtn", width: 250, title: "All continents (null criteria)", click: function() { filterGrid.setImplicitCriteria(null); } }); isc.HStack.create({ ID: "criteriaBtnStack", membersMargin: 30, height: 1, members: [ isc.Label.create({ contents: "Implicit Criteria:", height: 1 }), europeAsiaBtn, europeAsiaAusBtn, allCtnBtn ] }); isc.VStack.create({ membersMargin: 30, members: [ criteriaBtnStack, filterGrid ] });
Comment