I have a DynamicForm based on a data source and I'm using this code to override a foreignKey field to display as a comboBox. It displays the dropdown and correctly shows the DisplayField based on the current value in the ValueField. The problem is that that is the only entry in the dropdown. How do I get it to show all available values from the data source so I can choose another?
A side note: I had to change the ISC_Forms.js to get the picker icon to show up. It was looking for a pickerIcon.gif file which did not exist in the Enterprise Skin. I changed it to use ComboBoxItem_PickButton_icon.gif instead.
Code:
FormItem cat = itemForm.getField("CategoryID"); cat.setType("comboBox"); cat.setOptionDataSource(ipMerchHierarchyDS); cat.setValueField("ID"); cat.setDisplayField("Name"); itemForm.setFields(submit, cat);
Comment