Hi Isomorphic,
in this modified sample (v12.0p_2020-02-04), are there any problems / usage errors other than the fact that setting values does not work?
Here, the DataSource has a PK (required I think), but the valueField used is not unique.
Thank you & Best regards
Blama
in this modified sample (v12.0p_2020-02-04), are there any problems / usage errors other than the fact that setting values does not work?
Here, the DataSource has a PK (required I think), but the valueField used is not unique.
Code:
isc.DynamicForm.create({ ID: "dynamicForm", width: 500, fields: [{ name: "itemCategory", title: "Supply item", fetchDisplayedFieldsOnly: true, sortField: ["category", "itemID"], valueField: "category", [B]// This value is not unique[/B] displayField: "itemName", editorType: "ComboBoxItem", optionDataSource: "supplyItem", pickListWidth: 650, pickListFields: [{ name: "itemID" }, { name: "itemName" }, { name: "category" }] }] }); isc.IButton.create({ ID: "buttonGet", width: 200, title: "Get DF values", click: "isc.say(dynamicForm.getValues())" }); isc.IButton.create({ ID: "buttonSetID", width: 200, title: "Set CBI value to 2500", click: "dynamicForm.setValue('itemCategory', 2500)" [B]// Does not work, uses category instead of ID[/B] }); isc.IButton.create({ ID: "buttonSetCategory", width: 200, title: "Set CBI value to 'Office Filing and Storage'", click: "dynamicForm.setValue('itemCategory', 'Office Filing and Storage')" [B]// Does not or better can't work, uses 1st category entry[/B] }); isc.VLayout.create({ membersMargin: 10, members: [dynamicForm, buttonGet, buttonSetID, buttonSetCategory] });
Blama
Comment