Constants Summary | |
---|---|
Number | CUSTOM_VALUES Constant to set the valueListType of a JSValueList. |
Property Summary | |
---|---|
String | customValues A string with the elements in the valuelist. |
String | name The name of the value list. |
Constants Details | |
---|---|
CUSTOM_VALUES |
|
Constant to set the valueListType of a JSValueList.
Sets the value list to use a custom list of values. Also used in solutionModel.newValueList(...) to create new valuelists |
|
Returns |
|
Sample var vlist = solutionModel.newValueList('options', JSValueList.DATABASE_VALUES); vlist.valueListType = JSValueList.CUSTOM_VALUES; // Change the type to custom values. vlist.customValues = "one\ntwo\nthree\nfour"; |
|
Property Details | |
---|---|
customValues |
|
A string with the elements in the valuelist. The elements
can be separated by linefeeds (custom1 custom2), optional with realvalues ((custom1|1 custom2|2)). |
|
Returns |
|
Sample var vl1 = solutionModel.newValueList("customtext",JSValueList.CUSTOM_VALUES); vl1.customValues = "customvalue1\ncustomvalue2"; var vl2 = solutionModel.newValueList("customid",JSValueList.CUSTOM_VALUES); vl2.customValues = "customvalue1|1\ncustomvalue2|2"; var form = solutionModel.newForm("customvaluelistform",controller.getDataSource(),null,true,300,300); var combo1 = form.newComboBox("scopes.globals.text",10,10,120,20); combo1.valuelist = vl1; var combo2 = form.newComboBox("scopes.globals.id",10,60,120,20); combo2.valuelist = vl2; |
|
name |
|
The name of the value list. It is relevant when the "useTableFilter" property is set. |
|
Returns |
|
Sample var vlist = solutionModel.newValueList('options', JSValueList.DATABASE_VALUES); vlist.dataSource = 'db:/example_data/valuelists'; vlist.setDisplayDataProviderIds('valuelist_data'); vlist.setReturnDataProviderIds('valuelist_data'); vlist.useTableFilter = true; vlist.name = 'two'; |
|