SmartClient Version: SNAPSHOT_v11.1d_2017-05-05/Enterprise Development Only (built 2017-05-05)
Chrome on OSX
Hello, please try this test case:
open the pickList and try selecting a record: you'll see that the selectionUpdated method is called 3 times, and only in the first call the record is selected.
Chrome on OSX
Hello, please try this test case:
Code:
isc.DynamicForm.create({
ID:"testForm",
width: 500,
fields : [
{
name: "multipleSelect", title: "Select all items", editorType: "SelectItem",
optionDataSource: "supplyItem",
optionCriteria: {units:"Ream"},
displayField:"SKU", valueField:"itemID",
pickListWidth:400,
pickListFields:[
{name:"SKU"},
{name:"itemName"}
],
multiple: true,
specialValues: { "**emptyValue**": "Select None", "**selectAllValues**": "Select All" },
separateSpecialValues: true,
pickListProperties: {
selectionUpdated: function (record, recordList) {
if (recordList.length > 6) {
this.selectRecord(record, false);
} else {
var hint = " " + recordList.length + "/6"
isc.logEcho(hint)
testForm.getItem("multipleSelect").setHint(hint);
}
}
}
}
]
});
Comment