Navigator |
It refers to the navigator object associated with the view or component.
The navigator object comprises the control bar as well as the pagination bar. These bars are used to navigate and view records, and also to insert, delete, and refresh records available in the model.
This is a read-only property. It can be set during design time.
Syntax
The syntax is as below:
Designtime |
This property can be set through the property sheet of the control by selecting the control bar and pagination bar options of the control. |
Script |
oNavigator = viewID.navigator or oNavigator = componentID.navigator |
Possible values
Parameter |
Description |
---|---|
oNavigator |
Object that refers to the navigator object associated with the view or component |
Remarks
The property returns the navigator object that contains the control bar and the pagination bar of the view or component, if present. This can be used to manipulate the pagination buttons or their methods, or to disable, enable, hide, and show the pagination buttons available in the bar.
Properties, Events, and Methods of the Navigator Object
Table 1. List of Properties
Design-time property |
Runtime property |
Description |
---|---|---|
|
Sets the string that identifies the element bar button on an XForm. If not specified, a unique ID is automatically generated. |
|
Sets and retrieves the position of the current button in the tabbing order for the current XForm. |
||
Sets the tool tip that appears on a button when the mouse is moved over it. Programmatically, this property is set by specifying the title property of the button. |
||
Task Part |
|
Creates a task part for the button. Selecting the check box, displays the Task Part pane. |
|
Retrieves a handle to the Insert button object present on the Control Bar of the control. |
|
|
Retrieves a handle to the Delete button object present on the Control Bar of the control. |
|
|
Retrieves a handle to the Refresh button object present on the Control Bar of the control. |
|
|
Retrieves a handle to the First button object present on the Pagination Bar of the control. |
|
|
Retrieves a handle to the Previous button object present on the Pagination Bar of the control. |
|
|
Retrieves a handle to the Find button object present on the Pagination Bar of the control. |
|
|
Retrieves a handle to the Next button object present on the Pagination Bar of the control. |
|
|
Retrieves a handle to the Last button object present on the Pagination Bar of the control. |
|
|
Retrieves a handle to the Show All button object present on the Pagination Bar of the control. |
Table 2. List of Events
Event |
Description |
---|---|
This event is activated after the successful deletion of a business object from the dataset. This event will not be executed if the onbeforedelete event is cancelled. |
|
This event is activated after a business object is found in the dataset when searched for using the Find button. |
|
This event is activated after the first set business objects for the dataset is fetched. |
|
This event is activated after the successful insertion of a business object in the dataset. This event will not execute if the onbeforeinsert event is cancelled. |
|
This event is activated after the last set of business objects for the dataset is fetched. |
|
This event is activated after the next set of business objects for the dataset is fetched. |
|
This event is activated after the previous set of business objects for the dataset is fetched. |
|
This event is activated after the view or component is refreshed. This event will not be executed if the onbeforerefresh event is cancelled. |
|
This event is activated after the data from the backend of the current model is retrieved and displayed using the Show All button. |
|
This event is activated before the deletion of a business object in the dataset. This event has a returnValue property, which when set to False, will cancel the firing of the event. |
|
This event is activated before a business object is searched for in the dataset by using the Find button. |
|
This event is activated before the first set of business objects for the dataset is fetched. |
|
This event is activated before the insertion of a business object in the dataset. This event has a returnValue property, which when set to false, will cancel the firing of the event. |
|
This event is activated when the last set of business objects for the dataset is fetched. |
|
This event is activated before the next set of business objects for the dataset is fetched. |
|
This event is activated before the previous set of business objects for the dataset is fetched. |
|
This event is activated before the data in the view or component is refreshed. This event has a returnValue property, which when set to false, will cancel the firing of the event. |
|
This event is activated before all data from the backend is retrieved for the current model and displayed using the Show All button. |
Table 3. List of Methods
Method |
Description |
---|---|
This method registers the control to receive notifications for an event. |
|
This method hides the navigator object and its buttons based on the parameter passed. |
|
This method unregisters the control to cease receiving notifications for its events. |
|
This method displays the navigator object and its buttons based on the parameter passed. |
Example
This code demonstrates how the property can be used.
//Get the navigator and hide the navigation buttons var navigator = newView.navigator; if (! navigator) return; //Hide the navigational(pagination) buttons from the page navigator.hide("navigation"); //Hide the control bar buttons from the page navigator.hide("control");