Base Form AbstractLookup v1.0.0
AbstractLookup
Provides base form implementation of a lookup form. In general, direct use of this form is not needed. But developers can subclass this form to create a custom implementation.
Members
lookup : scopes.svyLookup.Lookup
The lookup object used by this lokup form
searchText : String
User input for text searching
Functions
Dismisses the popup
newInstance(lookupObj) ⇒ RuntimeForm.<AbstractLookup>
onCreateInstance(jsForm, lookupObj)
Hook for sub form(s) to implement specific sol model additions
Callback when item is selected
Runs the search. Loads records in the foundset.
showPopUp(callback, target, [width], [height], [initialValue])
Shows this form as pop-up, returns selection in callback
dismiss()
Dismisses the popup
newInstance(lookupObj) ⇒ RuntimeForm.<AbstractLookup>
RuntimeForm.<AbstractLookup>
Param | Type |
---|---|
lookupObj |
|
newInstance~form : RuntimeForm.<AbstractLookup>
RuntimeForm.<AbstractLookup>
onCreateInstance(jsForm, lookupObj)
Hook for sub form(s) to implement specific sol model additions
Param | Type |
---|---|
jsForm |
|
lookupObj |
|
onSelect()
Callback when item is selected
search()
Runs the search. Loads records in the foundset.
showPopUp(callback, target, [width], [height], [initialValue])
Shows this form as pop-up, returns selection in callback
Param | Type | Description |
---|---|---|
callback |
| The function that is called when selection happens |
target |
| The component which will be shown |
[width] |
| The width of the pop-up. Optional. Default is component width |
[height] |
| The height of the pop-up. Optional. Default is form height. |
[initialValue] |
| Initial value in search. Optional. Default is empty. |
lookup : scopes.svyLookup.Lookup
scopes.svyLookup.Lookup
The lookup object used by this lokup form
searchText : String
String
User input for text searching
Last updated