This section provides an example of how to bind data to a Combo widget.
If you get data from context
1 Define Data Structure:
Define an IndexedCollection data to define the data structure of comboBox as following, label is the data to specify combo label.
Every IndexedCollection data must have at least one kColl data type as a root data container.
Specify the submitted data for the comboBox. For example, it can be comboData.comboName.
2 Assign values to dataNameForList and labelField. You need to specify dataName for either of the two modes, which is the submitted value for combo widget.
If you get data from list files
1 Prepare a JavaScript file with proper data structure.
For example: /WebContent/listFiles/normal.js is like:Data in the first column is label field and the second column is value field.
2 Specify the JavaScript file path as the value of urlForList.
In this case, you do not need to edit labelField and valueField since they are defined in the JavaScript file.