Creating Boolean Fields
Boolean property fields are used to define true/false property values.
To create a custom boolean property field, do the following:
-
Select [Component] > Advanced > Customize. [Component] corresponds to the component for which you are creating a property field.
The Customize dialog box opens.
-
Review the Customize dialog box to find the fields that can be customized. The fields and icon graphics accompanying them are as follows:
- A field with a pencil in the center of the icon is an application field. It is always an enumerated type and is fully customizable. You can add, disable, rename, and reorder its values.
- A new field icon displays the head and shoulders of a person. It can be one of several types and is fully customizable. If the new field is disabled, the icon is greyed-out.
- An application field with an icon containing a small yellow lock in the lower left corner is a restricted enumerated type. You can change only the names the application displays for the values of this field.
-
Click Add.
The Add Field dialog box opens.
-
Type the name for the new field to be used by the database in the Field name field. Use only alphanumeric characters and no spaces in this name. The name should be less than 31 ASCII characters (including Usr_) and not contain the following characters, which are not accepted by one or more of the databases that the application supports: =
\\.^$@,;!:#*&<>?-//%|[](())+"
-
Type the name that the application will display to users in the Display Name field.
-
Select Boolean from the Type list.
-
In the Possible Values list,
True and False
are listed by default. If you want to change the names of these values (for example toYes
orNo
), select the value and click Edit. - Optionally: Click
Add to enter a new value.
The Add Value dialog box opens. StarTeam reserves the numeric codes from 0 to 100, so this dialog shows numbers starting with 101.
- In the Default Value box, select the value you want to be the default value for all items that have this field type as a property. If you want the default value selected to always be true, select the Default is True check box.
- Verify that the values you have selected are the ones that you want. They cannot be changed once you exit the dialog box.
- Click OK.