cancel
Showing results for 
Search instead for 
Did you mean: 

Fiori Elements Object Page: Placing actions before standard action Delete

a_oezsoy
Explorer
0 Kudos

Hi,

I have a Fiori Elements app and I am having difficulty placing my action button before the standard Delete action in the object page.

I have written a sample code below.

Referring to the delete button as StandardAction::Delete seems to work in the list report page.

Setting the anchor as any other existing button works as well

(e.g. "anchor": "DataFieldForAction::MyService.MyAction2").

I don't understand what I am doing wrong here? Is this functionality supported?

Thanks,

Atakan

Sample code:

annotations.cds
-----
...
annotate MyEntity with @UI : {
...
Identification : [
{ $Type : 'UI.DataFieldForAction',
Action : 'MyService.MyAction',
Label : 'My Action'
}
],
...
}
-----

manifest.json (in "sap.ui5".routing.targets)
-----
"MyObjectPage": {
...
"options": {
"settings": {
...
"content": {
"header": {
actions: {
"DataFieldForAction::MyService.MyAction": {
"position": {
"placement": "Before",
"anchor": "StandardAction::Delete"
}
}
}
}
}
...
}
}
}

Accepted Solutions (0)

Answers (0)