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.
- Click File -> New.
Business Object Designer displays the New Business Object dialog
box, as illustrated in Figure
30.
- Type the name HierarchicalBO for the new business
object definition.
- Leave the Application Specific Information column empty
and click OK.
Business Object Designer 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 click the Key column.
- Create the next attribute in the next available empty row,
which is 3. Name it Addr.
- Click the Type list 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 in the
Type list. You must save the new child business object
before you can complete this step.
- Skip the Key, Foreign, and Reqd (or
Required) columns. Click the Card list and select
1.
- Ignore all other columns. Define supported verbs, and save the
definition.
