API Documentation v1.0.0
Classes
Functions
createLookup(dataSource) ⇒ Lookup
Creates a lookup object which can be used to show a pop-up form
Lookup
lookup.addField(dataProvider) ⇒ LookupField
LookupField
Adds a field to the lookup object
dataProvider
String
lookup.getDataSource() ⇒ String
String
Gets the data source for this Lookup object
lookup.getField(index) ⇒ LookupField
LookupField
Gets the field at the specified index
index
Number
lookup.getFieldCount() ⇒ Number
Number
Gets the number of fields in the lookup object
lookup.removeField(index)
Removes a field at the specified index
index
Number
lookup.showPopUp(callback, target, [width], [height], [initialValue])
Shows the lookup
Suppresswarnings(wrongparameters): Fixes illegitmate warning
callback
function
The function that will be called when a selection is made
target
RuntimeComponent
The component to show relative to
[width]
Number
The width of the lookup. Optional. Default is same as target component
[height]
Number
The height of the lookup. Optional. Default is implementation-specifc.
[initialValue]
String
And initial value to show in the search
new Lookup(datasource)
datasource
String
LookupField
.getDataProvider() ⇒
String
.getFormat() ⇒
String
.getTitleText() ⇒
String
.getValueListName() ⇒
String
.isSearchable() ⇒
Boolean
.isVisible() ⇒
Boolean
lookupField.getDataProvider() ⇒ String
String
Gets the data provider for this field
lookupField.getFormat() ⇒ String
String
Gets the display format for this field;
lookupField.getTitleText() ⇒ String
String
Gets the display text for this field
lookupField.getValueListName() ⇒ String
String
Gets the value list name for this field
lookupField.isSearchable() ⇒ Boolean
Boolean
Gets the searchability of this field
lookupField.isVisible() ⇒ Boolean
Boolean
Indicates if this field should be displayed
lookupField.setFormat(f) ⇒ LookupField
LookupField
Sets the display format for this field
f
String
lookupField.setSearchable(b) ⇒ LookupField
LookupField
Indicates if this field is searchable
b
Boolean
True to make searchable. False to make display-only
lookupField.setTitleText(txt) ⇒ LookupField
LookupField
Sets the display text for this field
txt
String
lookupField.setVisible(b) ⇒ LookupField
LookupField
Sets this field's visibility in the lookup form
b
Boolean
lookupField.setvalueListName(vl) ⇒ LookupField
LookupField
Sets the valuelist to use to display this field
vl
String
new LookupField(lookup, dataProvider)
lookup
dataProvider
createLookup(dataSource) ⇒ Lookup
Lookup
Creates a lookup object which can be used to show a pop-up form
dataSource
String
| JSFoundSet
| JSRecord
The data source to lookup
createLookup~ds : String
String
Last updated