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
- Navigate to Product Administration.
- 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.
- Click the Configuration Designer tab.
- 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.
- Click New to create a new record.
A form appears.
- 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.
- 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.
- Click the Root Product select button and select the current customizable product from the Pick Root Product dialog box.
- 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.
- Enter the script in the area provided in the Script Definition form.
The Script Definition form is located below the list of scripts.
- 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.
- In the Script Definition form, click Save.
- Open the Script Designer menu and click Validate.
This starts a configuration session. Verify that the new script works correctly.