Siebel Product Administration Guide > Siebel Configurator Scripts >

Creating Siebel Configurator Declarations Scripts

Declaration scripts are methods that you want to make available to event scripts or other declaration scripts. Declaration scripts are stored in a common area accessible by event scripts. Declaration scripts can call methods and objects defined in the Siebel API.

Use declaration scripts to write methods that are common to more than one event script. Instead of repeating the method in each event script, you can write one declaration script and call it from within the event scripts that use it.

To create a declarations script

  1. Navigate to the Administration - Product screen.
  2. Select and lock the desired product or product class.
  3. Navigate to the Scripts view for the Work Space version.
  4. In the Scripts list, add a new record and complete the necessary fields, described in the following table.


    Choose "(declarations)."

    If this is not the first declarations script, overwrite "(declarations)" with a script name. All scripts for a customizable product must have a unique script name.

    Program Language

    If this is the first script you are creating for this product, select Visual Basic or eScript.

    If this is not the first script, and select the same programming language used for previous scripts.

    Root Product

    Select the current customizable product.

  5. Enter the script in the area in the Script Definition form.

    The Script Definition form is located below the Scripts list.

  6. When you have finished entering the script, click Check Syntax.

    If there are errors, they will display at the top of the Customizable Product Scripts form. Correct any errors before saving the script.

  7. In the Script Definition form, click Save.
  8. From the Scripts view menu, select Validate.

    This starts a configuration session. Verify that the new script works correctly.

Siebel Product Administration Guide Copyright © 2010, Oracle and/or its affiliates. All rights reserved. Legal Notices.