Selected Attributes

Which attributes are selected is not communicated through input parameters for the hooks. Instead, the following helper function is available:

boolean attributeIsSelected(i.componentName, i.attributeImplementationName)

This helper function can be used in the before, on and after execute hook. It cannot be used if the List/Show is implemented as a batch method.

Input is the attribute implementation name as defined in the BII. and the component name as defined in the BII. Note that for top-down or bottom-up implementations the component name is superfluous. But for batch implementations it isn't. For that reason the component name must be specified.

Example:
if attributeIsSelected(Order, businessPartnerName) then
	...
Note: Both the component name and the attribute implementation are not (quoted) strings, do not invoke this function using attributeIsSelected("Order", "orderNumber"), but use attributeIsSelected(Order, orderNumber) instead.

Also note that the attribute implementation name may differ from the public attribute name, especially if attribute grouping is used. For example, you can use: attributeIsSelected(Order, Header_IDs_orderNumber).

The return value is true if the attribute implementation is selected, and false if not. In case of derived protected attributes (having an on set hook), selection is also derived from the selection of the public attribute. For example, for an internalOrderNumber which is derived from the public orderNumber, attributeIsSelected(Order, internalOrderNumber) will return true if attributeIsSelected(Order, orderNumber) returns true