Base Form AbstractLookup v1.0.0 - Servoy/svyLookup GitHub Wiki

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

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

dismiss()

Dismisses the popup


newInstance(lookupObj) ⇒ RuntimeForm.<AbstractLookup>

Param Type
lookupObj scopes.svyLookup.Lookup

newInstance~form : RuntimeForm.<AbstractLookup>


onCreateInstance(jsForm, lookupObj)

Hook for sub form(s) to implement specific sol model additions

Param Type
jsForm JSForm
lookupObj scopes.svyLookup.Lookup

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 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.

lookup : scopes.svyLookup.Lookup

The lookup object used by this lokup form


searchText : String

User input for text searching


⚠️ **GitHub.com Fallback** ⚠️