API svyNavigation
Last updated
Last updated
⇒
Creates a NavigationItem object to the given formName
⇒ ⇒ String
Gets the version of this module
⇒ Boolean
Opens the navigation item. If the item already exists in the stack, then all items after the specified item are closed beforeClose event will be fired allowing a chance to react or cancel afterOpen will fire allowing UIs to update
⇒ Boolean
⇒ *
⇒ String
⇒ String
⇒ String
⇒ String
⇒
⇒
⇒
⇒
*
Example
String
Gets the name of the form associated with this navigation item.
String
String
String
Example
Sets the name of the form associated with this navigation item.
Properties
Enumeration for the data selection type specified in the open function. The chosen selection type is passed to the open function [open](@link open) [afterOpen](@link afterOpen) and needs to be implemented accordingly. The Default value is LOAD_RECORDS
See: open(itemOrId, dataToShow, dataSelectionType) Properties
Example
Creates a NavigationItem object to the given formName
String
Gets the version of this module
Returns: String
- the version of the module using the format Major.Minor.Revision
Boolean
Opens the navigation item. If the item already exists in the stack, then all items after the specified item are closed beforeClose event will be fired allowing a chance to react or cancel afterOpen will fire allowing UIs to update
Example
Boolean
Example
Param | Type |
---|
Param | Type |
---|
Param | Type |
---|
Param | Type |
---|
Param | Type |
---|
Name | Default | Description |
---|
Name | Default | Description |
---|
Param | Type |
---|
Param | Type |
---|
Param | Type | Description |
---|
Param | Type |
---|
customData |
|
formName |
|
text |
|
tooltipText |
|
[formName] |
|
[text] |
|
[tooltipText] |
|
BEFORE_CLOSE |
| register for navigation event to listen for this event (@see addNavigationListener) beforeClose event will be fired before navigating allowing a chance to react or cancel |
AFTER_OPEN |
| register for navigation event to listen for this event (@see addNavigationListener) afterOpen event will be fired when a navigation item has been opened; react to the after_open event to implement your navigation |
LOAD_RECORDS |
| This is the DEFAULT selection type. Will run foundset.loadRecords(dataToShow) on the form to be shown. Load records into the form's foundset. If you load a relation into this foundset, then this foundset will not be a related foundset, it will not automatically update its state of records are updated or added that belong to that relation. It will only be a snapshot of that related foundsets state. Foundset filter params are copied over from the source foundset and are merged with the existing filters on this foundset. |
SET_FOUNDSET |
| Can be used only when the dataToShow is of type JSFoundSet. Will run controller.loadRecords(dataToShow) for the target form. Replace the default form's foundset with setting the (related) foundset into the form. The form will no longer share the default foundset with forms of the same datasource, use loadAllRecords to restore the default foundset. This will really update the foundset instance itself of the form, so now existing foundset is altered just the new foundset is shown. When the form uses a seperate foundset, foundset filter params are copied over from the source foundset and are merged with the existing filters. |
SELECT_RECORD |
| Can be used only when the dataToShow is a JSRecord. Selects the record with the given pk in the foundset even if the record is not loaded in foundset yet. Warning: can be very expensive, as the entire foundset may needs to be loaded. Returns false if the record cannot be found in the entire foundset. |
FORCE_SELECT_RECORD |
| Can be used only when the dataToShow is a JSRecord. Selects the record with the given pk in the foundset even if the record is not loaded in foundset yet. Warning: can be very expensive, as the entire foundset may needs to be loaded. Returns false if the record cannot be found in the entire foundset. If the record is not present in the foundset will force the selection by loading all records into the foundset. If there are active foundset or table filters these won't be removed, they will still apply. |
listener |
|
[formName] |
|
[text] |
|
[tooltipText] |
|
listener |
|
itemOrID |
[dataToShow] |
| The data to show for the given navigation item. The data is passed to the afterOpen event |
[dataSelectionType] |
|
| String
Determine the type of selection in the target navigation item with the given dataToShow enumeration options. The chosen selection type is passed to the afterOpen and needs to be implemented accordingly. Default NAVIGATION_SELECTION_TYPE.LOAD_RECORDS