Configuring Siebel Open UI > Customizing Siebel Open UI > Customizing Events >

Overriding the OnControlEvent Method and Then Calling a Superclass


You must not configure Siebel Open UI to override the OnControlEvent method to handle an event, and then call a superclass. For example, assume you configure Siebel Open UI to override the listpmodel.js file, and that the derived class resides in the derivedpm1.js file. Assume you then use the following code to override the OnControlEvent method that resides in the pmodel.js file. This file specifies the base presentation model class:

derivedpm1.prototype.OnControlEvent = function(event_name)
{
}

In this situation, when an event occurs, Siebel Open UI calls the overridden OnControlEvent instead of the pmodel.prototype.OnControlEvent. You must avoid this configuration. For more information, see OnControlEvent Method.

Configuring Siebel Open UI Copyright © 2018, Oracle and/or its affiliates. All rights reserved. Legal Notices.