Use the [XX_DEFAULTS] section provided in the text_api.cfg file for each interface using the Text API (for example, [EMAIL_DEFAULTS] for the email interface and [CMD_DEFAULTS] for the command line interface). The [XX_DEFAULTS] section defines the default values for fields and properties that are required in case the user does not supply them directly. XX refers to the interface type, such as CMD or EMAIL.
To set default values, use one of the following formats:
The keyword must be defined either in the [KEYWORDS] section or as properties in your database. Any method associated with the keyword is automatically applied to the value. For example:
ISSUE.PRIORITY=1
The PRIORITY keyword is defined in text_api.cfg so that it performs a lookup to convert the value you specify to match the corresponding value that is stored in the database. Here, value 1 is converted to 5, which is the underlying database value for the priority symbol 1. This feature lets users specify the value just as they would in the web interface.
The property_label must be defined as a property in your database.
In both formats, the table_name must be one of the values defined by VALID_TABLE_LIST in the [OPTIONS] section, such as Issue, Request, or Contact.
Copyright © 2012 CA. All rights reserved. | Tell Technical Publications how we can improve this information |