Adding an Attribute
To add an attribute to a complex schema, use the following procedure:
1. From the Manage Complex Schema page, click Add Attribute.
The Manage Attribute page opens.
2. Specify attribute information using the fields and actions on the Manage Attribute page. The following table describes the fields and actions available:
Field
Description
Attribute Name
Enter the name of the attribute
Type
Select the attribute type.
Possible types include: boolean, double, long, float, int, short, byte, string, date.
Minimum Occurrences
Enter the minimum number of occurrences for this attribute.
The default value is 0, which means this attribute is not required. Specifying 1 means the attribute is required.
Maximum Occurrences
Enter the maximum number of occurrences for this attribute. The default is 1.
Unbounded
Select this checkbox if there is no upper limit to the number of times that the attribute can be specified.
Editable
Select this checkbox if the attribute is editable.
For example, if the attribute is editable, it may be displayed in the user interface as a text box rather than a text label.
Label
Enter the label of the attribute.
If a resource bundle has been defined for the schema, (Key) appears next to the Label field. This means that the string entered in this field specifies the key in the resource bundle from which the label is retrieved.
If no resource bundle is defined for the schema, (Text) appears next to the Label field. This means that the string entered in this field specifies the actual text displayed.
Maximum String Length
Enter the maximum string length that can be specified for this attribute.
Default Value
Enter the default value for the attribute.
Enumeration Task
Specify an enumeration task for the attribute. Enumeration tasks are Info*Engine tasks that populate enumerated values at runtime.
* 
If an enumeration task is specified, any enumerated values specified are automatically deleted.
Add Range
Click to specify a value range for the attribute. Only numeric types can have specified ranges.
For additional information on ranges, including procedures for adding and deleting ranges, see Managing Ranges.
Add Enumerated Value
Click to specify an enumerated value for the attribute.
For additional information on enumerated values, including procedures for adding and deleting enumerated values, see Managing Enumerated Values.
* 
If an enumeration task is specified, any enumerated values specified are automatically deleted.
3. Click Save Attribute to save the attribute as specified.
The attribute is displayed in the Attributes table on the Manage Complex Schema page.
Related Topics
Isto foi útil?