Hi,
What is the appropriate annotation structure to have an Action trigger for a group of selected items? I assume the action has to be unbound, so we have it like this:
entity MyEntity as projection on ns.MyEntity
action TransportAll();
action TransportSelected(Templates: many UUID);
And we are trying annotations like this:
{
$Type : 'UI.DataFieldForAction',
Label : 'Transport All',
Action : 'MyService.EntityContainer/TransportAll',
InvocationGrouping : #ChangeSet
},
{
$Type : 'UI.DataFieldForAction',
Label : 'Transport',
Action : 'MyService.EntityContainer/TransportSelected',
InvocationGrouping : #ChangeSet
},
What I want to achieve is that the "Transport All" action does something for all the items in the entity set and the "Transport" action does it only for the ones that are selected. The first is trivial, but with the second I am struggling to get a hold of the actual items the user has selected. I need to create one package (a transport) containing all the items, so having the action trigger once per selected item is not an option.
Hoping there is some advice for this?
Thanks!
//Carl