Using ShowAndPublishEvent for Subcomponents
A ShowAndPublishEvent() method can also be used for subcomponents. For example:
ppmmm.bl999st00.OrderLine.ShowAndPublishEvent(
const string i.eventAction,
domain ppmmm.otyp i.orderType,
domain ppmmm.orno i.orderNumber,
domain ppmmm.line i.lineNumber)
When invoking ShowAndPublishEvent() for a subcomponent, then the following component instances are included in the event message: the specified component instance, all its children, grand children etc., and its parent, grand parent etc. Siblings of the specified components and of its parents are not included.
For example, for a business object consisting of three levels:
- ShowAndPublishEvent on order X: include orders X and all order lines of X and all sub lines of those order lines (depending on selection and filter, of course).
- ShowAndPublishEvent on order X line 1: include order X and order line 1 and all sub lines order line 1 (depending on selection and filter, of course). So order line 2 etc. are not included.
- ShowAndPublishEvent on order X line 1, sub line 3: include order X and order line 1 and sub line 3 (depending on selection and filter, of course). So order line 2 etc. are not included and also sub line 1, 2 and 4 of order line 1 are not included.