Navigator Element

Top  Previous  Next

Navigator element send the navigation request with one of Http Get, Http Post or Ajax. The commands provided to the user by the element are as follows:

1.Go to previous page
2.Go to previous block
3.Go to first page
4.Go to next page
5.Go to next block
6.Go to last page
7.Go to the given page

 

nav

Properties

Data Source

The name of the data source to navigate on with this element.

Items Per Page

This property defines the number of the records to show at once on a page.

Pages Per Block

The value of this property is used along with "Items Per Page" and it defines the number of the page indexes to show on a page. This property is not meaningful for the NavLite element.

Example:

Items Per Page  : 10

Pages Per Block : 5

 

Total number of records provided by the data source: 500

 

The records will be shown as 10 blocks and 50 pages.

Submit Type

The method how the navigation commands are submitted to the system. The options are:

1.Http Get. The request is sent with Http Get method. The current page is generated from the scratch, The request parameters are visible on the browser's address bar.
2.Http Post. The request is sent with Http Post method. The current page is generated from the scratch, The request parameters are not visible on the browser's address bar.
3.Ajax. The request is sent with XMLHttpRequest. Processes can be executed. Only the desired parts of the current page can be refreshed. In case of this option is selected the Ajax properties of this element must also be specified.
Sending additional request parameters
4.Ajax Post. The request is sent with XMLHttpRequest...

 

Before-Submit Function

In this property you can define a Javascript function that supposed to be called just before the submitting the navigation request. The function receives the Navigator object as the parameter and can perform last minute tasks such as validation the input and it can cancel the submission by returning false.

 
Ajax

Process List

The normal and the Ajax refresh process elements that will be executed for each navigation request can be defined in the Process List dialog.

Access Control (Accepts MScript)

The processes in the list are executed only if the user that has a session has sufficient authority on the the access control definition made with this property.

If the definition is made with this property then the Access Control definition of the page is used for the same purpose. For the detailed information please see Basic Elements > Element "Page" > Property "Access Control" topic.

Process Manager Debug Level (Accepts MScript)

Select a value between 1 and 3 to trace the steps of the MoreMotion Process Manager on the system console. The debugging switches of the processes can be set on the Process List.

Busy Image Id

The HTML id of a "mor > Ajax > BusyImage" element that exists in the page.

 

CallBack Function

The Javascript function to be called after the target fields are refreshed. The function receives a MultiPartAjaxResponse object as the parameter.

For the details please see MoreMotion Face API. {INSTALL_DIR}\lib\sys\moremotion\faceapi\MultiPartAjaxResponse.html

Error Handler

The name of the function to be called when an error occurs. The function receives Exception and AjaxResponse objects as the parameters.

 

Css Class Prefix

Different Css styles can be used to change the outlook of the navigator element on the page. The default CSS file{INSTALL_DIR}\lib\sys\moremotion\ROOT\moremotion\face\Navigators\Navigator.css can be copied and customized for that.

All the CSS classes in this file starts "navdefault" prefix. These prefixes should be changed in the copied file for customization and the new prefix name should be specified in this property.