Adding Confirmation Popovers for Actions

Adding Confirmation Popovers for Actions

You can display a confirmation popover when a user triggers an action.
Tip

Such a confirmation popover is only supported on actions without an action parameter dialog.

To display a confirmation popover, add the IsActionCritical annotation to your action as shown below:

Sample Code

XML Annotation

Sample Code
Hidden
<Annotations Target="GWSAMPLE_BASIC.GWSAMPLE_BASIC_Entities/RegenerateAllData">
        <Annotation Term="com.sap.vocabularies.Common.v1.IsActionCritical" Bool="true"/>
</Annotations>

Sample Code

ABAP CDS Annotation

No ABAP CDS annotation sample is available. Please use the local XML annotation.

Sample Code

CAP CDS Annotation

Sample Code
Hidden
annotate GWSAMPLE_BASIC.RegenerateAllData with @(
    Common.IsActionCritical : true
); CDS
				Annotation

Additional Features in SAP Fiori Elements for OData V2

Apps can add action-specific messages to confirmation dialog boxes. For more information, see Localization of UI Texts.