SmartClient Version: SNAPSHOT_v11.1d_2016-10-16/Enterprise Development Only (built 2016-10-16)
Chrome on OSX El Capitan
Hello, please try this code:
as you may see, the field displays '3958'.
Reading the docs for displayField:
I thought that the presence of the itemName value in the record would guaranteed that it will be displayed.
Of course if I set fetchMissingValue to true, it would fetch the value and display it, but I am trying to avoid that extra fetch.
Am I misunderstanding something?
Chrome on OSX El Capitan
Hello, please try this code:
Code:
isc.DynamicForm.create({ ID:"testForm", fields:[ {name:"foo", valueField:"itemID", displayField:"itemName", optionDataSource:"supplyItem", fetchMissingValues:false, editorType:"ComboBoxItem"} ] }); testForm.setValues({foo:3958, itemName:"bar"});
Reading the docs for displayField:
Specifies an alternative field from which display values should be retrieved for this item. The display field can be either another field value in the same record
Of course if I set fetchMissingValue to true, it would fetch the value and display it, but I am trying to avoid that extra fetch.
Am I misunderstanding something?
Comment