Product Administration Guide > Customizable Product Scripts >

Creating a Declarations Script


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 Product Administration.
  2. Select and lock the desired customizable product.
  3. 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.

  4. Click the Configuration Designer tab.
  5. From the Configuration Designer menu, choose Script Designer.
  6. The Script Designer, Scripts list appears. It displays the scripts that have been created for this customizable product.

  7. Click New to create a new record.
  8. A form appears for defining a declaration script record.

  9. In the Name field, click the down-arrow and choose "(declarations)."
  10. 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.

  11. 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.
  12. If this is not the first script, click the down-arrow and select the programming language used for previous scripts.

  13. Click the Root Product select button and select the current customizable product from the Pick Root Product dialog box.
  14. In the Script Designer, click Save.
  15. 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.

  16. In the Script Definition form, enter the script.
  17. The Script Definition form is located below the list of scripts. If you want to delete your entries and start the script over, click Reset.

  18. When you have finished entering the script, click Check Syntax.
  19. If there are errors, they will display at the top of the Customizable Product Scripts form. Correct any errors before saving the script.

  20. In the Script Definition form, click Save.
  21. The new script displays in the Customizable Product Scripts form when you select the script name in the Script Designer.

  22. Click Save in the Scripts list to save the new script.
  23. Open the Script Designer menu and click Validate.
  24. This starts a configuration session. Verify that the new script works correctly.


 Product Administration Guide 
 Published: 23 June 2003