cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Fiori elements: how to add confirmation popup

anete
Participant
0 Kudos
12,541

I have created a List Report application from Fiori elements smart template with local annotations. Then I added a custom button for the table with UI.DataFieldForAction annotation.

Requirement is to get user confirmation before executing the action on the table item.

Any suggestions how do I add a confirmation popup on the new button "Notify customer"?

Annotation for the button:

<Annotations Target="NorthwindModel.Customer"> 
<Annotation Term="UI.LineItem"> 
<Collection>
.. 
<Record Type="UI.DataFieldForAction">
<Annotation Term="UI.InvocationGrouping" EnumMember="UI.OperationGroupingType/ChangeSet"/>
<PropertyValue Property="Label" String="Notify customer"/>
<PropertyValue Property="Action" String="NorthwindModel/CustomerNotify"/>
</Record>
</Collection>
</Annotation> 
.. 
</Annotations>

Full code of the WEB IDE project is here https://github.com/oanete/ztest

Regards,

Anete

View Entire Topic
smith_john
Active Participant

Hi,

I have the same requirement .. I have defined my action in a BOPF and then used the CDS view annotation to render it in the UI, I'd like to have a popup to confirm the action.

Can this be done with CDS annotations or does it have to be done in the WEBIDE?

GK817
Active Contributor

Could you find any solution to this Neil? Is it possible?

Working on similar requirement.