Siebel Interactive Designer API Reference > Application File Reference > Files in the Custom Directory >

customCode.js


This is the file inside which you can write custom code to be associated with a callout point function.

Sample usage:

function COP_InvalidItemAdded(calloutPkg)

{

alert("Behold the invalid configuration.");

}

The customCode.js file also contains the InitApp function, which determines the behavior of the application when it first loads. You can write custom code to define the behavior. You can also edit either of the included InitApp examples to display the Contents List or a specific pageset when the application loads. You can even use InitApp to return a string if you want to override the default module registry file. InitApp can also be used to activate Start On Active when using an application in a stand-alone environment.

NOTE:  If using the persistent engine (APP_LOAD_UI_ON_STARTUP = false), InitApp should not contain code that displays anything in the display area. This is because the display area is not available until you call ShowCDA().

Sample Usage:

function InitApp() {

ISS.ShowContentsList();

}


 Siebel Interactive Designer API Reference 
 Published: 18 April 2003