Base Form AbstractLookup v1.0.0 - Servoy/svyLookup GitHub Wiki
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.
-
lookup :
scopes.svyLookup.Lookup -
The lookup object used by this lokup form
-
searchText :
String -
User input for text searching
- dismiss()
-
Dismisses the popup
-
newInstance(lookupObj) ⇒
RuntimeForm.<AbstractLookup> - onCreateInstance(jsForm, lookupObj)
-
Hook for sub form(s) to implement specific sol model additions
- 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
Dismisses the popup
| Param | Type |
|---|---|
| lookupObj | scopes.svyLookup.Lookup |
Hook for sub form(s) to implement specific sol model additions
| Param | Type |
|---|---|
| jsForm | JSForm |
| lookupObj | scopes.svyLookup.Lookup |
Callback when item is selected
Runs the search. Loads records in the foundset.
Shows this form as pop-up, returns selection in callback
| Param | Type | Description |
|---|---|---|
| callback | function |
The function that is called when selection happens |
| target | RuntimeComponent |
The component which will be shown |
| [width] | Number |
The width of the pop-up. Optional. Default is component width |
| [height] | Number |
The height of the pop-up. Optional. Default is form height. |
| [initialValue] | String |
Initial value in search. Optional. Default is empty. |
The lookup object used by this lokup form
User input for text searching