Product Administration Guide > Customizable Product Scripts >

Creating an Event Script


Event scripts run when defined events are called during a configuration session. You create an event script by selecting an event method and writing the script within it.

Event scripts can call methods and objects defined in the Siebel API. They can also call methods assigned to the declarations area.

To create an event script

  1. Navigate to Product Administration.
  2. Select and lock the desired customizable product.

    If you omit this step, the most recently released version of the customizable product is loaded in the Script Designer, and you cannot create or edit scripts.

  3. Click the Configuration Designer tab.
  4. From the Configuration Designer menu, choose Script Designer.

    The Script Designer, Scripts list appears. It displays the scripts that have been created for this customizable product.

  5. Click New to create a new record.

    A form appears.

  6. In the Name field, click the down-arrow and select the desired event.

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

  7. If this is the first script you are creating for this product click the down-arrow in the Program Language field and select Visual Basic or eScript.

    If this is not the first script, click the down-arrow and select the programming language used for previous scripts.

  8. Click the Root Product select button and select the current customizable product from the Pick Root Product dialog box.
  9. In the Script Designer, click Save.

    The form is replaced by a list of the scripts that have been created for this customizable product. The record you just created is highlighted.

  10. Enter the script in the area provided in the Script Definition form.

    The Script Definition form is located below the list of scripts.

  11. 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.

  12. In the Script Definition form, click Save.
  13. Open the Script Designer menu and click Validate.

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

Product Administration Guide