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.

See Using AES to create a BOD template from scratch.
Note: This topic assumes that you have already performed the beginning part of the process as described in that topic.

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

  1. In the Tree View, select the node that is to be the parent node for the node you are creating.
  2. In the Enter Name below to Add/Rename field provide the name to be used for the new element.
  3. Click Add Element.

Adding an attribute to a node

  1. In the Tree View, select the element node to which you want to add an attribute.
  2. Optionally, specify the name for the attribute in the Enter Name below to Add/Rename field.
  3. Click Add Attribute.

Attributes appear similar to elements, except that their names are preceded by an 'at' (@) symbol.

Defining node text for an attribute

  1. In the Tree View, select the attribute for which you want to define node text.
  2. In the Node Text section, perform one or more of these actions:
    • Click Expression Editor, and then use the Expression Editor form to construct the desired expression.
    • 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.
  3. Save the node text, by performing one of these actions:
    • To save the text as an expression, click Save As Expression.
    • To save the text as a literal value, click Save in XML.

Renaming a node

  1. In the Tree View, select the node you want to rename.
  2. In the Enter Name below to Add/Rename field, provide the new name to be assigned to the element.
  3. Click Rename.

Removing a node

  1. In the Tree View, select the node you want to remove.
  2. Click Remove.
  3. When prompted, confirm the removal.