SmartClient Version: v13.0p_2023-06-12/AllModules Development Only (built 2023-06-12)
Chrome on MaxOS
Hello please try the #treeLoadOnDemand sample modified like this:
if you select different values for the selectItem, you'll see fetches without the implicit criteria.
Is it a bug, or am I missing something?
Chrome on MaxOS
Hello please try the #treeLoadOnDemand sample modified like this:
Code:
isc.DynamicForm.create({ ID: "aForm", fields: [ { name: "EmployeeStatus", optionDataSource: "employees", displayField: "EmployeeStatus", valueField: "EmployeeStatus", editorType: "SelectItem", changed(form, item, value) { var needsFetch = false; if (!employeeTree.data.implicitCriteria) { needsFetch = true; } employeeTree.data.setProperty('implicitCriteria', {EmployeeStatus: value}); if (needsFetch) { employeeTree.fetchData(); } } } ] }) isc.TreeGrid.create({ ID: "employeeTree", top: 100, width: 500, height: 300, alternateRecordStyles: true, dataSource: "employees", fields: [ {name: "SKU"}, {name: "Job"}, {name: "OrgUnit"}, {name: "EmployeeType"}, {name: "EmployeeStatus"} ], showFilterEditor: true, filterOnKeypress: true, fetchDelay: 500 });
Is it a bug, or am I missing something?
Comment