Upgrade Guide for DB2 UDB for z/OS > Migrating Siebel 6.2.1 Customizations >
Migrating Scripts Attached to Controls
Upgrades: Release 6.2.1 only. Environments: Development environment only. This topic is part of an upgrade process. See How to Perform the Upgrade. In Release 7.0.x, the ControlName_Click event handler was replaced by the Method Invoked property on control objects. By specifying the Method Invoked property, when a user clicks on a control (for example, a Button), the client framework checks to see if the method was implemented in browser script associated with the Applet_PreInvokeMethod event. If the method was not implemented in browser script, the request is sent to the server for execution. After this request is on the server, the Object Manager verifies that the method was implemented in the WebApplet_PreInvokeMethod event, and then the BusinessService_PreInvokeMethod event. If the method was not implemented in either browser or server script, an error occurs. Control methods that were formerly available in Siebel VB or Siebel eScript also are no longer available. In Release 7.x, all control methods are available through browser scripting and execute in the high interactivity applications only. Table 29 provides a list of the control methods that are supported by browser script. For more information, see Siebel Tools Online Help.
Table 29. Control Method Syntax Summary
|
|
|
Applet |
Returns the parent applet for the control. |
var oControl; var oApplet; oApplet = oControl.Applet(); |
Buscomp |
Returns the corresponding business component for the control. |
var oControl; var busComp; busComp = oControl.Buscomp(); |
GetValue |
Returns the value of a control. |
var oControl; var sValue; sValue = oControl.GetValue(); |
Name |
Returns the name of the control. |
var oControl; var sName; sName = oControl.Name(); |
SetValue |
Sets the contents of the control to the indicated value. |
var oControl; oControl.SetValue(value); |
In addition to specifying the Method Invoked property, controls may also be scripted based upon native DOM events supported by the browser. Figure 8 depicts the DOM events that may be scripted when a MiniButton control is added to an applet. The scripting of control-based DOM events is supported by high and standard interactivity applications and must be implemented in JavaScript.
Figure 8. DOM Events When MiniButton Control Added to Applet
|
For more information on migrating scripts, see About Migrating 6.2.1 Scripts. Related Topics
Migrating Scripts Attached to Applets
Migrating Business Component, Business Service, and Application Scripts
|