Creating an Attribute

About this task

To create an attribute:

Procedure

  1. Right-click a map object and select either Create Sub or Insert from the shortcut menu.
  2. From the shortcut menu, select Attribute. The Sterling B2B Integrator Map Editor displays the Attribute Properties dialog box.
  3. 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.
  4. 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.
  5. Click the Type tab to access the attribute type options.
  6. 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.
  7. Click the Validation tab to access the validation options.
  8. In the Validation tab, specify the following:
    • Minimum length
    • Maximum length
    • Type of data
    • How the data is formatted
  9. 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.
  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.
  11. Click OK. The Sterling B2B Integrator Map Editor saves the attribute and closes the Attribute Properties dialog box.