Modifying and constructing the body
To create a Business Object Document (BOD) template from scratch, use the Send BOD event action type in the Application Event System. This is done using the Event Action Send BOD form.
Once the basic BOD template has been created, use the Event Action Send BOD form to create the body of the template.
Because a BOD is basically a specially formatted XML file, the body of a BOD template file consists of a series of nodes representing elements, with or without attributes. You can nest these nodes as deeply as required to accomplish the aim of the BOD.
When you are constructing the body of a BOD template file, you have these options for creating and modifying nodes in the Event Action Send BOD form:
Adding an element node
- In the Tree View, select the node that is to be the parent node for the node you are creating.
- In the Enter Name below to Add/Rename field provide the name to be used for the new element.
- Click .
Adding an attribute to a node
- In the Tree View, select the element node to which you want to add an attribute.
- Optionally, specify the name for the attribute in the Enter Name below to Add/Rename field.
- Click .
Attributes appear similar to elements, except that their names are preceded by an 'at' (@) symbol.
Defining node text for an attribute
- In the Tree View, select the attribute for which you want to define node text.
- In the Node Text section, perform one or more of these actions:
- Click Expression Editor form to construct the desired expression. , and then use the
- Select a predefined and preformatted BOD segment from the drop-down list.
- Write or modify the XML code for the node text directly in the multi-line Edit field.
- Save the node text, by performing one of these actions:
- To save the text as an expression, click .
- To save the text as a literal value, click .
Renaming a node
- In the Tree View, select the node you want to rename.
- In the Enter Name below to Add/Rename field, provide the new name to be assigned to the element.
- Click .
Removing a node
- In the Tree View, select the node you want to remove.
- Click .
- When prompted, confirm the removal.