Upgrade Guide for DB2 UDB for z/OS and OS/390 > Migrating Siebel 6.x Customizations >

Migrating Scripts Attached to Applets


Upgrades: Release 6.x only.

Environments: Development environment only.

This topic is part of an upgrade process. See How to Perform the Upgrade.

When upgrading to Release 7.7, you must do one of the following:

  • Migrate Release 6.x scripts written on applets to applet server scripts or business component server scripts. Migrating applet scripts includes the following types of tasks:
    • Moving Release 6.x applet scripts such as Control_Click event handlers to business components
    • Rescripting Release 6.x ActiveX controls in browser script
    • Rewriting other Release 6.x applet scripts in browser script
  • Rewrite Release 6.x scripts as browser scripts.

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 8, applet scripts implemented in Siebel 6.x need to be moved to one or more of the following browser or server script events:

  • (Web) Applet Server Script
    • PreInvokeMethod
    • InvokeMethod
    • ShowControl
    • ShowListColumn
    • PreCanInvoke
    • Load
  • Applet Browser Script
    • PreInvokeMethod
    • InvokeMethod
    • ChangeRecord
    • ChangeFieldValue
  • Application Server Script
    • PreNavigate
    • Navigate
Figure 8. Movement of Applet Scripts
Click for full size image

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 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 25 depicts Siebel 6.x events and corresponding Release 7.x events available in either browser or server script.

Table 25. 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.7 events (for example Applet_LostFocus event), you must evaluate and reimplement the functionality of the Siebel 6.x script. 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 Application.Navigate or PreNavigate event.

The following list of applet-level methods are no longer available (obsolete) in this release:

  • ActiveControl
  • FindControl
  • FindActiveXControl
  • GotoControl
  • PostChanges
  • Drilldown

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.

For more information on migrating scripts, see About Migrating 6.x Scripts.

Related Topics

Migrating Scripts Attached to Controls

Migrating Business Component, Business Service, and Application Scripts

Upgrade Guide for DB2 UDB for z/OS and OS/390