Application Events

Configuration

 

 <appEvents>
       <onAppInit>mco:sampleMco.onAppInit()</onAppInit>
       <onAppStartup>mco:sampleMco.onAppStartup()</onAppStartup>
 </appEvents>


<onAppInit>

The onAppInit element contains the handler for the onAppInit event. This is an optional element that must contain valid mco syntax.

The onAppInit event is fired after the configuration file has been read, but before the application UI is built. This provides a means for modifying the configuration of the application before it is rendered.

<onAppStartup>

The onAppStartup element contains the handler for the onAppStartup event. This is an optional element that must contain valid mco syntax.

The onAppStartup event is fired after the application UI has been built and after the home page has been loaded. If security is enabled, this event is fired after the user has been successfully logged in, and after the onLoginSucceeded event has fired. This provides a means for doing global initializations after the application has started.