Run Neptune applications

Applications are normally started when a user clicks on a tile in the Neptune Launchpad. But applications can also be started in a range of other scenarios. An application can be started just by running the direct URL. If you only need to run one application, we still recommend running the application inside the Neptune launchpad. You can set the launchpad to only run this one application, by doing this you still get the benefit of the launchpad framework.

Another way to start an application is by code using the AppCache.Load function. By doing this in the Neptune Launchpad, you can take advantage of all the Launchpad events. You can also run applications inside another application in a parent frame, making your Neptune applications reusable in a wide range of scenarios.

When an application is started using AppCache.Load, the onInit, and onBeforeDisplay event handlers are called. Not the same way in all the different scenarios. Here’s a matrix of the different scenarios:

Scenario

Code

First call

Subsequent calls

Clicking navigation item

From tile click

+

onInit
beforeDisplay

beforeDisplay

beforeDisplay

Standalone without init

AppCache.Load("APP");

onInit
beforeDisplay

beforeDisplay

Standalone with init
First call

AppCache.Load("APP", \{
    load: "init"
});

onInit

Standalone with init  
Subsequent calls

AppCache.Load("APP");

beforeDisplay

beforeDisplay

In Parent

AppCache.Load("APP", \{
    parentObject: panel
});

onInit
beforeDisplay

beforeDisplay

With navigation item

AppCache.Load("APP", \{
    load: "nav"
});

onInit
beforeDisplay

beforeDisplay

In dialog

AppCache.Load("APP", \{
    dialogShow: true
});

onInit
beforeDisplay

Single app in launchpad

onInit
beforeDisplay

App in tilegroup

onInit
beforeDisplay

App in tile

onInit
beforeDisplay