Siebel Database Upgrade Guide > Postmerge Development Tasks for Siebel 6.x Upgrades >

Migrating Siebel Scripts Attached to Applets


Upgrades from: Siebel 6.x.

Environments: Development environment only.

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

When upgrading to Siebel 7.7.x, you must do one of the following:

  • Migrate Siebel 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 Siebel 6.x applet scripts such as Control_Click event handlers to business components
    • Rescripting Siebel 6.x ActiveX controls in browser script
    • Rewriting other Siebel 6.x applet scripts in browser script
  • Rewrite Siebel 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 Siebel 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 56 depicts Siebel 6.x events and corresponding Siebel 7.x events available in either browser or server script.

Table 56. Siebel 6.x Applet Events and Siebel 7.x Equivalents
Siebel 6.x Applet Event
Siebel 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 Siebel 7.7.x 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 TheApplication.Navigate or PreNavigate event.

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

ActiveControl

FindControl

FindActiveXControl

GotoControl

PostChanges

Drilldown

Related Topics

About Migrating Siebel 6.x Scripts.

Migrating Siebel Scripts Attached to Controls

Migrating Siebel Business Component, Business Service, and Application Scripts

Siebel Database Upgrade Guide