Siebel Advisor API Reference > Callout Point Functions for Siebel Advisor >

InitApp


Usage

The InitApp function is called when the application starts. You can use the InitApp function to specify the actions that occur when the application loads.

InitApp must be defined for a browser-based application in the file customCode.js in the custom directory. The default function included in the application template shows only the Contents List. No default startup behavior is defined, so if no actions are specified by InitApp, no actions are performed.

InitApp should only contain calls to display in the UI if LOAD_UI_ON_STARTUP = TRUE. This function is called when the code loads. In the case of Siebel Integrated mode, the UI is not loaded when the code loads.

Syntax

InitApp()

Example

In the following example, the application starts with the Contents List displayed and the dogs pageset loaded and displayed:

function InitApp() {

if (ISS.GetConfigVarWithDefault("APP","LOAD_UI_ON_STARTUP",true)) {

ISS.ShowContentsList();

ISS.LoadPageset("dogs");

}

}

Siebel Advisor API Reference Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Legal Notices.