Siebel Database Upgrade Guide for DB2 UDB for z/OS > Migrating Siebel 6.2.1 Customizations >

Migrating Scripts Attached to Applets


Upgrades: Release 6.2.1 only.

Environments: Development environment only.

This topic is part of an upgrade process. See How to Perform a Siebel Database Upgrade.

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

  • Migrate Release 6.2.1 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.2.1 applet scripts such as Control_Click event handlers to business components
    • Rescripting Release 6.2.1 ActiveX controls in browser script
    • Rewriting other Release 6.2.1 applet scripts in browser script
  • Rewrite Release 6.2.1 scripts as browser scripts.

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

As shown in Figure 7, applet scripts implemented in Siebel 6.2.1 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 7. Movement of Applet Scripts
Click for full size image

In Release 8.0, 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.2.1 applet events. Corresponding browser or server script event handlers might be available, but the scripts are not automatically migrated. Table 17 depicts Siebel 6.2.1 events and corresponding Release 7.x events available in either browser or server script.

Table 17. Siebel 6.2.1 Applet Events and Release 7.x Equivalents
Siebel 6.2.1 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.2.1 events and Release 8.0 events (for example Applet_LostFocus event), you must evaluate and reimplement the functionality of the Siebel 6.2.1 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 TheApplication.Navigate or PreNavigate event.

Some applet level methods are no longer available in Release 8.0. The obsolete applet methods are listed in Table 18. 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 18. Obsolete Applet Methods
Applet Method

ActiveControl

FindControl

FindActiveXControl

GotoControl

PostChanges

Drilldown

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

Related Topics

Migrating Scripts Attached to Controls

Migrating Business Component, Business Service, and Application Scripts

Siebel Database Upgrade Guide for DB2 UDB for z/OS Copyright © 2012, Oracle and/or its affiliates. All rights reserved. Legal Notices.