cancel
Showing results for 
Search instead for 
Did you mean: 

How to add custom button in message pop in fiori app?

shrutimane
Discoverer
0 Kudos

Hello ,

Can someone tell me how to add custom button in fiori message pop up box? screenshot is attached.

Thanks

capture.png
View Entire Topic
sriharsha_cr
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello, shruti2719

SAP UI5 provides a Dialog component, that allows you to make necessary customizations. In this specific case, footer aggregation can be used to render a list of action buttons, that will be added to the footer section of the Dialog box.

Code Snippet:

<Dialog id="helloDialog" headerText="Validation Message">
    <l:VerticalLayout>
       <!-- Dialog body here  -->
    </l:VerticalLayout>
    <footer>
        <!-- Your custom action buttons here -->
        <Button click=".handleClose" text="Register"  />
    </footer>
</Dialog>

Reference: https://sapui5.hana.ondemand.com/sdk/#/entity/sap.ui.webc.main.Dialog/sample/sap.ui.webc.main.sample...

Best Regards,

Harsha

shrutimane
Discoverer
0 Kudos

can we achieve this with Restful Abap Programming Model (RAP)?

sriharsha_cr
Product and Topic Expert
Product and Topic Expert
0 Kudos

Sorry, I'm not much into RAP. I'm more of a Cloud Application Programming(CAP) developer.