.navigateTo()

Previous Next

Navigates to a different page.

Returns the 'this' object.

Syntax

.navigateTo( page, options ) 

 

options  ::=  {

    targetFrame:  target-frame

,   applyChanges:  apply-changes

,   newPage:  new-page

,   quiet:  quiet

,   success:  success-function

,   error:  error-function

}

 

apply-changes  ::=  { true | false }

new-page       ::=  { true | false }

quiet          ::=  { true | false }

The required page is a string that identifies the page being navigated to.

Options is a struct that can have the following items, all of which are optional.

Target-frame is a string identifying the target frame in which page is to be opened. If not specified, the page is opened in the current context.

Apply-changes is a boolean that defines whether changes must be applied. The default is true.

New-page determines if the record data on the previous page must replace the initial data on the target page or not.

If new-page is false (the default), all data from the previous page are merged with the new data sources that exist on both pages. Data sources that do not exist on the new page are discarded.

If new-page is true, all data of the previous page are discarded and re-queried where requested. This is also the case with page navigation using the Menu Control, which has this option set to true by default.

Quiet is a boolean that determines whether or not a message is displayed if an error occurs. Default is false, meaning that a message is displayed by default.

Success-function is a function called after the operation has successfully completed.

Error-function is a function called if an error occurs.

 

Example

$.udb.navigateTo('MyNextPage',{quiet:true});