on 11-14-2023 10:38 AM
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"
}
}
}
}
}
...
}
}
}
User | Count |
---|---|
80 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.