Creating an Attribute
About this task
To create an attribute:
Procedure
- Right-click a map object and select either Create Sub or Insert from the shortcut menu.
- From the shortcut menu, select Attribute. The Sterling B2B Integrator Map Editor displays the Attribute Properties dialog box.
- In the Name tab, specify
the following:
- Unique attribute name
- Description (if applicable)
- Additional notes
Note: The Additional notes box is populated automatically with the XML attribute annotation when you import an XML schema.
- If necessary, click the Tag tab
and change the value in the Tag box.
Note: The value in the Tag box must match the attribute tag in the XML document. XML tags cannot contain spaces.
- Click the Type tab to access the attribute type options.
- In the Type tab, specify
the following:
- Attribute type
- Default usage of the attribute
- Default value (only if you selected Default Exists
or Fixed)
Note: To use an enumerated attribute, you must also create a code list and use a code list standard rule with the attribute.
- Click the Validation tab to access the validation options.
- In the Validation tab,
specify the following:
- Minimum length
- Maximum length
- Type of data
- How the data is formatted
- Do you want to specify an extended rule for
this attribute?
- If Yes, click the Extended Rule tab,
define the rule, and continue with step 10.
See the Using Extended Rules for more information about extended rules.
- If No, continue with step 11.
- If Yes, click the Extended Rule tab,
define the rule, and continue with step 10.
- Do you want to specify a standard rule for
this attribute?
- If Yes, click the Standard Rule tab,
define the rule, and continue with step 11.
See the Using Extended Rules for more information about extended rules.
- If No, continue with step 11.
- If Yes, click the Standard Rule tab,
define the rule, and continue with step 11.
- Click OK. The Sterling B2B Integrator Map Editor saves the attribute and closes the Attribute Properties dialog box.