Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Create link in message Box - SAP Ui5

Lets say upon GRN posting , i received one message with link and when i click on link i get navigated to GRN page.

I want to know how to bring link on message box.

success.png (9983 B)
replied

Correct Answer

var link = new sap.m.Link({

         text: mess,              

         press:  [selfView.handleLinkPress, this]       

   });

  

  sap.m.MessageBox.show(link, {

      icon : sap.m.MessageBox.Icon.WARNING,

           title : "Successful Message",

           actions : [sap.m.MessageBox.Action.YES, sap.m.MessageBox.Action.NO],

            onClose : function(oAction) {

            debugger;

           },

           dialogId : "messageBoxId"

         });

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question