cancel
Showing results for 
Search instead for 
Did you mean: 

SAPUI5, XML: Adding Confirmation Popover for Action (with Parameter)

y-ay
Discoverer
0 Kudos
189

Hey! 🙂

Goal:
After clicking on the “myAction” action, a confirmation popup should appear.

This documentation already contains the solution. But if you read the tip at the top, you will see that this is not possible for actions with parameters.

Action Definition:

 

action myAction result [1] $self;

 

Annotation in XML file (metadata.xml):

I have added the second line. The other lines were generated automatically.

 

<Action Name="myAction" EntitySetPath="abc" IsBound="true">
    <Annotation Term="com.sap.vocabularies.Common.v1.IsActionCritical" Bool="true"/>
    <Parameter Name="abc" Type="typeName" Nullable="false"/>
    <ReturnType Type="typeName" Nullable="false"/>
</Action>

 

That didn't work. Now I'm looking for a solution.

Regards,

Accepted Solutions (0)

Answers (0)