Hello,
I am trying to create a comboBox that takes in specific values that specific to a database read. I have the following comboBox:
however, when I compile this, it ends up throwing a javascript error of :
this also prevents me from opening the listGrid editor on that page.
whenever I remove setAddUnknownValues, or set it to true, I don't have this problem, but having specific responses is critical to this application. Feel free to ask more questions, and i will take any advice you give.
[/CODE]
I am trying to create a comboBox that takes in specific values that specific to a database read. I have the following comboBox:
Code:
final ComboBoxItem cvidBoxItem = new ComboBoxItem("cvid", "Cvid");
cvidBoxItem.setAddUnknownValues(false);
cvidBoxItem.setTextMatchStyle(TextMatchStyle.[I]SUBSTRING[/I]);
cvidBoxItem.setOptionDataSource(cvidCodesDS.[I]getInstance[/I]());
cvidBoxItem.setDisplayField("formattedName");
cvidBoxItem.setValueField("objectid");
cvidBoxItem.setAllowEmptyValue(true);
cvidBoxItem.setAlign(Alignment.[I]CENTER[/I]);
LinkedHashMap<String,String> hashMap = new LinkedHashMap<String,String>();
hashMap.put("0", "None");
cvidBoxItem.setSpecialValues(hashMap);
Code:
Uncaught TypeError: this.pickerClearButton is undefined
isc_ComboBoxItem_setAddUnknownValues
isc_Class_setProperties
isc_ListGrid_makeEditForm
isc_ListGrid_showInlineEditor
isc_ListGrid__startEditing
isc_c_Class_fireCallback
isc_c_Timer__fireTimeout
whenever I remove setAddUnknownValues, or set it to true, I don't have this problem, but having specific responses is critical to this application. Feel free to ask more questions, and i will take any advice you give.
[/CODE]
Comment