You can add global scripts that can be called from
any other hooks in your schema.
About this task
To
create a global script:
Procedure
- Start the Designer.
- In the Workspace, expand the Global Scripts folder.
- Right-click the language folder, Basic or Perl,
and click Add.
- Type a name for the script.
- Double-click the script name to start the Script editor.
- Edit the script. Type your code in place of this line:
REM TODO -- put your script code here
When you create a global script, Rational®
ClearQuest® software
creates a placeholder for the hook but does not create any code. You must
supply all code for your function or subroutine, including the Function or
Sub declaration and parameter list. The names that you give to your global
scripts must be unique within the schema.
- When you are finished editing the global script, click verify
that it contains no syntactical errors. When you compile the script, the code
is saved.
- When you are finished, close the Script Editor window.