When you add a user-defined
property using the UserDefinedProperties.xml file, you specify the
name of the property, the initial value of the property, and the type
of object in the model repository to which it applies. The user-defined
property is created for the specified object type when the object
is added to the model repository. For example, if the XML file specifies
a user-defined property Due date for
an object type of project, the project object has a property of Due
date each time a project is created in the Projects category.
User-supplied properties are not added to existing objects in the
model repository.
You can specify these
object types in the UserDefinedProperties.xml file:
To add user-defined
properties for an object type:
-
Click
and select
Manage Templates.
-
Select the
UserDefinedProperties.xml
template
and click
.
-
Add properties using
an XML property element for each property. These arguments are required:
name="property-name"
specifies the name
of the property.
initial="initial-value"
specifies a value for
the property when it is added as a property for the specified object
type in the model repository. If you do not want to specify an initial
value, use two double quotation marks, initial=""
target="object-type"
specifies the object
type in the model repository for which the user-supplied value applies.
Example: <Property
name="Due date" initial=" " target="Project"/>
-
-