On Execute Hook

This hook is executed on each fetch.

On Execute List Show
Input for top-level component i.filter i.filter,

Public identifiers:

i.orderNumber, i.orderNumber.isSet

Input for child component Internal identifiers from parent component:

i.orno1, i.orno2, orno1.isSet, i.orno2.isSet

Output for top-level component o.anythingFetched,

All attribute arguments:

o.orderNumber, o.orno1, o.orno2, o.Customer_name, o.orderNumber.isSet, o.orno1.isSet, o.orno2.isSet, o.Customer_name.isSet

Output for child component o.anythingFetched,

All attribute arguments:

o.orno1, o.orno2, o.lineNumber, o.item, o.orno1.isSet, o.orno2.isSet, o.lineNumber.isSet, o.item.isSet,

The on execute hook must set o.anythingFetched to the correct value. If it is set to true then the data will be retrieved and an object or component instance is added to the List/Show response. If it is set to false then in case of a subcomponent the process will continue reading the next parent, and in case of the top-level component, the execution for the method will be finalized
Note: For List/Show we do not support io.default. If an on execute hook is defined, the default behaviour cannot be used. The reason is that the default behaviour requires initialization (building a query, parsing and executing it) that cannot be done anymore at the moment of 'on execute'. Additionally, we cannot switch between default behaviour or not per instance, because of the state that is used while reading the database.