Homelab, Linux, JS & ABAP (~˘▾˘)~
 

[CAP] Fiori Elements – Add button in table toolbar to trigger action

A button for calling an action or function can be added to a table header with a single line in the annotations.cds file:

UI.LineItem : [
        { $Type: 'UI.DataFieldForAction', Action: 'myService.EntityContainer/myAction', Label: 'This is my button label' },
...
    ],

Leave a Reply

Your email address will not be published. Required fields are marked *