SmartClient Version: v12.1p_2022-02-22/AllModules Development Only (built 2022-02-22)
Chrome on MacOS
Hello, I've got an error in my application which I managed to replicate in the showcase, please modify dataSourceFields sample like this:
I get this error in the Chrome console:
It works if I remove the implicitCriteria, or the multiple true, or if I define fields:[{name:"countryName"}] in the pickListProperties.
Chrome on MacOS
Hello, I've got an error in my application which I managed to replicate in the showcase, please modify dataSourceFields sample like this:
Code:
isc.Window.create({
width: 400,
autoSize: true,
autoCenter: true,
items: [
isc.DynamicForm.create({
width: "100%",
height: 100,
fields: [{
name: "countryCode",
editorType: "SelectItem",
multiple: true,
optionDataSource: countryDS,
displayField: "countryName",
valueField: "countryCode",
pickListProperties: {
implicitCriteria: {
_constructor: "AdvancedCriteria",
operator: "and",
criteria: [{
fieldName: "countryCode",
operator: "equals",
value: "US"
}]
}
}
}]
})
]
}).show();
Code:
ISC_Grids.js?isc_version=v12.1p_2022-02-22.js:2884 Uncaught TypeError: Cannot read properties of undefined (reading '0')
at _3.isc_ListGrid__setCheckboxHeaderState [as $63m] (ISC_Grids.js?isc_version=v12.1p_2022-02-22.js:2884:647)
at _3.isc_ListGrid_invalidateCache [as invalidateCache] (ISC_Grids.js?isc_version=v12.1p_2022-02-22.js:1011:589)
at _3.isc_Canvas_setImplicitCriteria [as setImplicitCriteria] (ISC_Core.js?isc_version=v12.1p_2022-02-22.js:4512:59)
at _3.isc_Class_setProperties [as setProperties] (ISC_Core.js?isc_version=v12.1p_2022-02-22.js:382:109)
at _3.$19n (ISC_Forms.js?isc_version=v12.1p_2022-02-22.js:2199:15)
at _3.setUpPickList (ISC_Forms.js?isc_version=v12.1p_2022-02-22.js:2187:6)
at _3.makePickList (ISC_Forms.js?isc_version=v12.1p_2022-02-22.js:2170:6)
at _3.isc_SelectItem_makePickList [as makePickList] (ISC_Forms.js?isc_version=v12.1p_2022-02-22.js:2401:59)
at _3.fetchData (ISC_Forms.js?isc_version=v12.1p_2022-02-22.js:2155:72)
at _3.isc_SelectItem_drawn [as drawn] (ISC_Forms.js?isc_version=v12.1p_2022-02-22.js:2355:520)
at _3.isc_DynamicForm__itemsDrawn [as $102] (ISC_Forms.js?isc_version=v12.1p_2022-02-22.js:452:275)
at _3.isc_DynamicForm_draw [as draw] (ISC_Forms.js?isc_version=v12.1p_2022-02-22.js:414:317)
at _3.isc_Canvas_init [as init] (ISC_Core.js?isc_version=v12.1p_2022-02-22.js:2961:91)
at _3.isc_Class_completeCreation [as completeCreation] (ISC_Core.js?isc_version=v12.1p_2022-02-22.js:377:6)
at Object.isc_c_Class_create (ISC_Core.js?isc_version=v12.1p_2022-02-22.js:260:47)
at <anonymous>:6:25
Comment