This example illustrates a composite operation configured against
REST Web service MBOs.
The Mobile Business Object:
restdemo Example Project illustrates SAP Mobile Platform features including input mapping and composite
operations, and can be downloaded and installed from the SAP® Community Network: http://scn.sap.com/docs/DOC-8803.
This example shows a composite graph in which:
- The Order and Item MBOs have a one-to-many composite relationship
through their orderId attributes.
- The Item and ItemNote MBOs have a one-to-many composite
relationship through their orderId and itemId attributes.
The Order MBO is the composite parent to the Item MBO, which is the
composite parent of the ItemNote MBO. You can view the hierarchy for the Order MBO
Update operation and modify the default input mappings from the operation's Properties
view Input tab:
- Input Mapping tab – view or modify the mappings from values into
remote operation arguments. An asterisk appears next to MBO names that have
one-to-many relationships. This example illustrates a composite operation (input
mappings from parent and child MBOs):
- Default Values tab – view or modify the default values for the
remote operation arguments and child elements:
- Client Parameters tab – view or modify client parameters. Client parameters can
be mapped into remote operation arguments on the Input Mapping tab:
Note: Defining client parameters on this tab does not automatically pass
them to the EIS, it just defines them; they can then be used to define
input mappings.