Bookshelf Home | Contents | Index | PDF |
Siebel Object Interfaces Reference > Interfaces Reference > Applet Events > WebApplet_ShowControl EventThis event allows scripts to modify the HTML generated by the Siebel Web Engine to render a control on a Web page in an application running in standard interactivity mode. SyntaxWebApplet_ShowControl (controlName, property, mode, HTML) ReturnsUsageThe generated HTML depends on the control, the property being shown, and the mode of the applet. The script can modify the value of the HTML argument, and the Siebel Web Engine sends the modified value back to the Web browser. Customer applications render the layout of applets using template files (.swt files). These are HTML files that contain special placeholder tags that indicate where a control is to be rendered. These control placeholder tags (
In the first instance, if the control ID is mapped to an actual control in the applet using Siebel Tools, Siebel Web Engine renders the DisplayName property of the control at the point where this tag is placed in the template file. In the second instance, the Siebel Web Engine renders the DisplayName property of the control at the point where the The Siebel Web Engine converts these tags into HTML to render the controls on the Web page. The WebApplet_ShowControl event is triggered for each of these tags after the Siebel Web Engine has generated the HTML for rendering the control, but before the generated HTML is sent back to the browser. This gives the scripts a chance to modify the generated HTML before it is shown. In the first example, the event fires only once, after the Siebel Web Engine generates the HTML for the The WebApplet_ShowControl event is supported in Standard Activity applications only. Used WithExampleThis Siebel eScript script displays negative amounts in red in a read-only form: function WebApplet_ShowControl (ControlName, Property, Mode, &HTML) |
Siebel Object Interfaces Reference | Copyright © 2008, Oracle. All rights reserved. | |