-
Notifications
You must be signed in to change notification settings - Fork 1
API Documentation v1.0.0
-
createLookup(dataSource) ⇒
Lookup
-
Creates a lookup object which can be used to show a pop-up form
lookup.addField(dataProvider) ⇒ LookupField
Adds a field to the lookup object
Param | Type |
---|---|
dataProvider | String |
Gets the data source for this Lookup object
lookup.getField(index) ⇒ LookupField
Gets the field at the specified index
Param | Type |
---|---|
index | Number |
Gets the number of fields in the lookup object
Removes a field at the specified index
Param | Type |
---|---|
index | Number |
Shows the lookup
Suppresswarnings(wrongparameters): Fixes illegitmate warning
Param | Type | Description |
---|---|---|
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 |
Param | Type |
---|---|
datasource | String |
-
LookupField
-
.getDataProvider() ⇒
String
-
.getFormat() ⇒
String
-
.getTitleText() ⇒
String
-
.getValueListName() ⇒
String
-
.isSearchable() ⇒
Boolean
-
.isVisible() ⇒
Boolean
-
.setFormat(f) ⇒
LookupField
-
.setSearchable(b) ⇒
LookupField
-
.setTitleText(txt) ⇒
LookupField
-
.setVisible(b) ⇒
LookupField
-
.setvalueListName(vl) ⇒
LookupField
- new LookupField(lookup, dataProvider)
-
.getDataProvider() ⇒
Gets the data provider for this field
Gets the display format for this field;
Gets the display text for this field
Gets the value list name for this field
Gets the searchability of this field
Indicates if this field should be displayed
lookupField.setFormat(f) ⇒ LookupField
Sets the display format for this field
Param | Type |
---|---|
f | String |
lookupField.setSearchable(b) ⇒ LookupField
Indicates if this field is searchable
Param | Type | Description |
---|---|---|
b | Boolean |
True to make searchable. False to make display-only |
lookupField.setTitleText(txt) ⇒ LookupField
Sets the display text for this field
Param | Type |
---|---|
txt | String |
lookupField.setVisible(b) ⇒ LookupField
Sets this field's visibility in the lookup form
Param | Type |
---|---|
b | Boolean |
lookupField.setvalueListName(vl) ⇒ LookupField
Sets the valuelist to use to display this field
Param | Type |
---|---|
vl | String |
Param | Type |
---|---|
lookup | Lookup |
dataProvider |
createLookup(dataSource) ⇒ Lookup
Creates a lookup object which can be used to show a pop-up form
Param | Type | Description |
---|---|---|
dataSource |
String | JSFoundSet | JSRecord
|
The data source to lookup |