kony.mvc Functions
The kony.mvc namespace contains the following function.
Creates an instance of the Navigation object.
Syntax 1
kony.mvc.Navigation(friendlyName);
Syntax 2
kony.mvc.Navigation({ "appName" : "", "friendlyName" : "" });
Input Parameters
| Parameter | Description |
|---|---|
| appName [String] [Mandatory] |
The name of the app in the project to which navigation must be done in case of inter app navigation. NOTE: The appName parameter is mandatory in case of inter-app navigation. |
| friendlyName [String] [Mandatory] | The friendly name of the form that the Navigation object is to be created for. |
Example 1
var Navigation = new kony.mvc.Navigation("FormFriendlyName");Example 2
var Navigation = new kony.mvc.Navigation({ "appName" : "Loans", "friendlyName" : "LoginForm" });Return Values
Returns a Navigation object on success, or null on failure.
Remarks
A form can have multiple Navigation objects, so it is possible for an app to call this function multiple times on a form.