Upgrade Guide for UNIX > Migrating Client Configurations > Migrating Scripts >

Migrating Scripts Attached to Applets


You must migrate Release 6.x scripts written on applets to applet server scripts or business component server scripts, or you must rewrite them as browser scripts. Applet script migration includes the following types of tasks:

To identify the number of 6.x applet scripts to be reviewed or migrated, look at the Object List Editor in Flat mode in Siebel Tools.

As shown in Figure 12, applet scripts implemented in Siebel 6.x need to be moved to one or more of the following browser or server script events:

Figure 12.  Movement of Applet Scripts
Click for full size image

NOTE:  In Release 7.x, the WebApplet_ShowControl and WebApplet_ShowListColumn event handlers are only supported for standard interactivity applications.

In many cases, the migration of applet scripts is relatively straightforward, because several WebApplet events correspond to Siebel 6.x applet events. Corresponding browser or server script event handlers might be available, but the scripts are not automatically migrated. Table 28 depicts Siebel 6.x events and corresponding Release 7.x events available in either browser or server script.

Table 28.  Siebel 6.x Applet Events and Release 7.x Equivalents
Siebel 6.x Applet Event
Release 7.x Equivalent
Applet_Load
WebApplet_Load (Server Event)
Applet_GotFocus
WebApplet_Load (Server Event)
Applet_ChangeFieldValue
Applet_ChangeFieldValue (Browser Event)
Applet_ChangeRecord
Applet_ChangeRecord (Browser Event)
Applet_PreInvokeMethod
WebApplet_PreInvokeMethod (Browser or Server Event)
Applet_InvokeMethod
WebApplet_InvokeMethod (Browser or Server Event)

In cases where there is no direct correlation between Siebel 6.x events and Release 7.x events (for example, Applet_LostFocus event), the functionality of the Siebel 6.x script needs to be evaluated and reimplemented. Depending upon the functionality provided by the script, scripts on the Applet_LostFocus event could be reimplemented as a server script and implemented on the TheApplication.Navigate or PreNavigate event.

Some applet level methods are no longer available in Release 7.x. The obsolete applet methods are listed in Table 29. In some cases, the methods were reimplemented as browser script methods, as in the case of FindControl and FindActiveX Control. Other methods, such as PostChanges, were replaced by properties that can be configured in Siebel Tools (Immediate Post Changes property on a Field). A few other methods require modifications to scripts that use these methods.

Table 29.  Obsolete Applet Methods
Applet Method
ActiveControl
FindControl
FindActiveXControl
GotoControl
PostChanges
Drilldown

 Upgrade Guide for UNIX
 Published: 20 October 2003