Hi Isomorphic,
please see the debug log generated for text entry in the two ComboBoxItems in this modified sample (v12.1p_2022-06-24, FF 101 / Win10).
As you can see, getEnteredValue() is broken in the 2nd item with pickListPlacement: "fillScreen".
This is an example log output:
Best regards
Blama
please see the debug log generated for text entry in the two ComboBoxItems in this modified sample (v12.1p_2022-06-24, FF 101 / Win10).
As you can see, getEnteredValue() is broken in the 2nd item with pickListPlacement: "fillScreen".
This is an example log output:
Code:
13:21:22.094:TMR4:WARN:Log:Value good item:test 13:21:25.421:MUP8:WARN:Log:Value broken item: 13:21:25.459:MUP8:WARN:Log:Value broken item:
Blama
Code:
isc.VLayout.create({ width: "100%", height: "100%", membersMargin: 30, members: [ isc.DynamicForm.create({ top: 25, titleWidth: 200, width: 600, numCols: 2, autoDraw: true, fields: [{ name: "categoryName", title: "Category", editorType: "SelectItem", defaultToFirstOption: true, valueMap: { "Office Paper Products": "Office Paper Products", "Exercise Books": "Exercise Books", "Memo/Note Books": "Memo/Note Books", "Wage/Time Books": "Wage/Time Books" }, changed: "form.clearValue('itemName');" }, { name: "itemName", title: "Normal ComboBoxItem (OK)", editorType: "ComboBoxItem", optionDataSource: "supplyItem", displayField: "itemName", valueField: "itemName", addUnknownValues: false, getPickListFilterCriteria: function() { var category = this.form.getValue("categoryName"); var value = this.getEnteredValue(); isc.logWarn("Value good item:" + value); if (value != null) { return { _constructor: "AdvancedCriteria", operator: "and", criteria: [{ fieldName: "category", operator: "equals", value: category }, { fieldName: "itemName", operator: "iContains", value: value } ] } } else { return { _constructor: "AdvancedCriteria", operator: "and", criteria: [{ fieldName: "category", operator: "equals", value: category }] }; } } }, { name: "itemName2", title: "Item with fillScreen and problem", editorType: "ComboBoxItem", pickListPlacement: "fillScreen", // causes the problem optionDataSource: "supplyItem", displayField: "itemName", valueField: "itemName", addUnknownValues: false, getPickListFilterCriteria: function() { var category = this.form.getValue("categoryName"); var value = this.getEnteredValue(); isc.logWarn("Value broken item:" + value); if (value != null) { return { _constructor: "AdvancedCriteria", operator: "and", criteria: [{ fieldName: "category", operator: "equals", value: category }, { fieldName: "itemName", operator: "iContains", value: value } ] } } else { return { _constructor: "AdvancedCriteria", operator: "and", criteria: [{ fieldName: "category", operator: "equals", value: category }] }; } } } ] }) ] });
Comment