cancel
Showing results for 
Search instead for 
Did you mean: 

sap.m.MessageBox.show - problem

Former Member
0 Kudos

Hi,

I am using sap.m.MessageBox.show to Display a confirmation message, asking user to confirm 'Yes' or No'.

Everything works fine, but the Message Pop-up, does not wait for the User input.

Message is displayed and disappears, without waiting for user's action.

any pointers would be appreciated.

Thanks,

Shanth

Accepted Solutions (0)

Answers (3)

Answers (3)

saptexpert
Explorer
0 Kudos

Hi,

I'm facing the same issue, did you happen to find any fix for this problem?

Thanks,

Mallik

karthikarjun
Active Contributor
0 Kudos

Hi Shanth,

jQuery.sap.require("sap.m.MessageBox");

  sap.m.MessageBox.show(

  "This message should appear in the message box.", {

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

  title: "My message box title",

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

  onClose: function(oAction) { / * do something * / }

  }

  );

Thanks,

Karthik A

former_member182372
Active Contributor
0 Kudos

any errors in console?