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
Param | Type |
---|---|
dataProvider |
|
lookup.getDataSource() ⇒ String
String
Gets the data source for this Lookup object
lookup.getField(index) ⇒ LookupField
LookupField
Gets the field at the specified index
Param | Type |
---|---|
index |
|
lookup.getFieldCount() ⇒ Number
Number
Gets the number of fields in the lookup object
lookup.removeField(index)
Removes a field at the specified index
Param | Type |
---|---|
index |
|
lookup.showPopUp(callback, target, [width], [height], [initialValue])
Shows the lookup
Suppresswarnings(wrongparameters): Fixes illegitmate warning
Param | Type | Description |
---|---|---|
callback |
| The function that will be called when a selection is made |
target |
| The component to show relative to |
[width] |
| The width of the lookup. Optional. Default is same as target component |
[height] |
| The height of the lookup. Optional. Default is implementation-specifc. |
[initialValue] |
| And initial value to show in the search |
new Lookup(datasource)
Param | Type |
---|---|
datasource |
|
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
Param | Type |
---|---|
f |
|
lookupField.setSearchable(b) ⇒ LookupField
LookupField
Indicates if this field is searchable
Param | Type | Description |
---|---|---|
b |
| True to make searchable. False to make display-only |
lookupField.setTitleText(txt) ⇒ LookupField
LookupField
Sets the display text for this field
Param | Type |
---|---|
txt |
|
lookupField.setVisible(b) ⇒ LookupField
LookupField
Sets this field's visibility in the lookup form
Param | Type |
---|---|
b |
|
lookupField.setvalueListName(vl) ⇒ LookupField
LookupField
Sets the valuelist to use to display this field
Param | Type |
---|---|
vl |
|
new LookupField(lookup, dataProvider)
Param | Type |
---|---|
lookup | |
dataProvider |
createLookup(dataSource) ⇒ Lookup
Lookup
Creates a lookup object which can be used to show a pop-up form
Param | Type | Description |
---|---|---|
dataSource |
| The data source to lookup |
createLookup~ds : String
String
Last updated