SmartClient Version: SNAPSHOT_v13.1d_2024-03-25/AllModules Development Only (built 2024-03-25)
Chrome on MacOS
ok, actually I can reproduce it in the showcase:
with a use case pretty similar to that in my application, even though in this sample the implicitCriteria doesn't seem to have an effect (I don't understand why) while in my actual code it works.
The sequence to see the error is:
- expand the first record
- open the SetFilterItem
- select "Adding Machine/calculator Roll"
- select "Pastes and Gum"
- deselect "AddingMachine/calculator Roll"
and you'll see this error:
Maybe I'm misusing something, as I also see several warnings.
Chrome on MacOS
ok, actually I can reproduce it in the showcase:
Code:
isc.SearchForm.create({ ID: "aSearchForm", fields: [ { name: "category", optionDataSource: "supplyItem", displayField: "category", valueField: "category", useUnselectedValues: false, toggleUseUnselectedValuesOnSelectAll: false, editorType: "SetFilterItem" } ] }) isc.ListGrid.create({ ID: "categoryList", width: "100%", height: 500, top: 60, showFilterEditor: true, filterOnKeypress: true, searchForm: "aSearchForm", dataSource: supplyItem, autoFetchData: true, canExpandRecords: true, getExpansionComponent: function (record) { var countryGrid = isc.ListGrid.create({ height: 224, dataSource: supplyItem, autoFetchData:true, implicitCriteria: { _constructor: "AdvancedCriteria", operator: "and", criteria: [ {fieldName: "category", operator: "inSet", valuePath: "aSearchForm.values.category"} ] } }); var layout = isc.VLayout.create({ padding: 5, members: [countryGrid] }); return layout; } });
The sequence to see the error is:
- expand the first record
- open the SetFilterItem
- select "Adding Machine/calculator Roll"
- select "Pastes and Gum"
- deselect "AddingMachine/calculator Roll"
and you'll see this error:
Code:
19:31:58.689:TMR2:WARN:Log:TypeError: Cannot read properties of null (reading 'getVisibleRows') Stack from error.stack: _3.eval(<no args: exited>) on[ListGrid ID:isc_ListGrid_0] @ [no file]:3:18 Canvas.refreshData(<no args: exited>) on[ListGrid ID:isc_ListGrid_0] @ ISC_Core.js:5178:37 null.<anonymous>(<no args: exited>) @ ISC_Grids.js:3542:338 [c]Class.fireCallback(_1=>callback(), _2=>null, _3=>null, _4=>null, _5=>true) on [Class Timer] @ ISC_Core.js:330:252 Timer._fireTimeout(_1=>"$ir1027", _2=>1114, _3=>undef) on [Class Timer] @ ISC_Core.js:2310:6 null.<anonymous>() @ ISC_Core.js:2305:40
Comment