You can enter keywords any place that you can enter character values. Keywords used to fill in fields on an AR are replaced with their corresponding values once you submit the AR. The available keywords are shown in the table below.
| Keyword | Substituted Value |
|---|---|
| $DATABASE$ | The database you are using. This is useful when you have workflow that is different depending upon the database. |
| $DATE$ | Current date. In a date/time field, the time defaults to midnight (0:0:0). |
| $DEFAULT$ | Default value for the associated field (only used when assigning a value to a field). |
| $GROUPS$ | The groups of which the current user is a member. |
| $LASTCOUNT$ | The number of matches found in the most recently run query. This means ANY query--from the Query window, from a query-style character menu, from a set fields operation that queries a schema, from a macro |
| $LASTID$ | The ID of the last successfully created entry. |
| $HARDWARE$ | Hardware platform the current process is running on. The different
values that can be returned are:
|
| $NULL$ | A null value (mainly used during modify operations or when selecting Set to Defaults on the Edit menu when displaying a Query or Submit window to remove a value). For more information on how to remove a value when selecting Set to Defaults, see Customizing the Environment. |
| $OPERATION$ | Current operation being performed. One of the following values is returned:
|
| $OS$ | Operating system that the current process is running under. The value
that is returned is: DOS: vx.xx Windows: vx.xx (enhanced mode) where x is your particular version number of DOS and Windows. |
| $SCHEMA$ | Schema currently opera ting on. |
| $SERVER$ | Server currently operating on. |
| $TIME$ | Current time. In a data/time field, the date defaults to the current date. |
| $TIMESTAMP$ | Current date/time stamp. |
| $USER$ | Name of the user who is currently logged in. |
| $VUI$ | The name of the VUI of the current active window. This keyword returns a value only when used by the User Tool actions (including active links); otherwise, an empty string is returned. |
| $WEEKDAY$ | Current day of the week. |
Note: These keywords are especially useful for specifying default values (see Customizing the Environment), in query definitions (see Reviewing and Modifying Action Requests), and in macro definitions (see Using Macros).
Copyright © 1996, Remedy Corporation. All rights reserved.