This section describes how to create a hierarchical business object
definition by defining an attribute that represents a child business object or
an array of child business objects.
Because the previous section explains how to define a simple attribute and
supported verbs, this section explains only the definition of an attribute
that represents a child business object. This example creates a
business object named HierarchicalBO that has two attributes:
- An attribute named Key that serves as the required business
object key.
- An attribute named Addr that represents the Address business
object with cardinality 1.
To manually create a hierarchical business object definition:
- Open Business Object Designer Express.
- From the File menu, select New.
Business Object Designer Express displays the New Business Object dialog
box, as illustrated in Figure 30.
- Enter the name HierarchicalBO for the new business object
definition.
- Leave Application Specific Information empty and click
OK.
Business Object Designer Express displays the business object definition
dialog box, as illustrated in Figure 31.
- Create a key attribute in the first available empty row, which is
2 for the first attribute. Name it Key, specify
any simple data type, and select the Key column.
- Create the next attribute in the next available empty row, which is
3. Name it Addr.
- Click in the Type column to display the pull-down list of
options and select Address for the attribute type.
- Note:
- If the child business object does not exist in the list, you can create it
now by selecting New business object from the Type pull-down menu. You
must save the new child before you can complete this step.
- Skip the Key, Foreign, and Reqd (or Required) fields. Click the
Card list and select 1.
- Ignore all other fields. Define supported verbs and save the
definition.
