Navigation Manager APIs

The Navigation Manager provides three main APIs.

kony.mvc.resolveNameFromContext API


In scenarios where micro apps are used, the resolveNameFromContext API can be used to resolve the paths during inter-app access of forms and templates.

Syntax

kony.mvc.resolveNameFromContext({"appName" : "", "friendlyName" : ""})

Input Parameters

Parameter Description
appName [String] [Mandatory] The name of the app in the project.
friendlyName [String] [Mandatory] The friendly name of the form or template.

Example

kony.mvc.resolveNameFromContext({"appName" : "Accounts", "friendlyName" : "flex1"})

Return Values

None.

Remarks

The resolveNameFromContext API can be used in the following scenarios:

  • To return the inter-app form in the appService and postAppinit events in case of micro apps.
  • NOTE: In a composite app, the application events of the base app are given a higher priority.

  • To configure another App Template in the current app.
  • To configure an inter-app Form as a Camera overlay.

kony.mvc.getNavigationManager API

The getNavigationManager API returns the navigation manager object of the app (both composite and independent apps).

The navigation manager object contains the following functions:

kony.mvc.getApplicationManager API

The getApplicationManager API returns the application manager object of the app (both composite and independent apps).

The application manager object contains the following functions: