Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Code Block
languagejs
themeRDark
titleConfirmation Dialog
linenumberstrue
jQuery.sap.require("sap.m.MessageBox");
sap.m.MessageBox.confirm( 
	"Confirmation Message Text Goes Here?",
	function(evt){
		console.log("confirm evt:" + evt);
		if( evt=="OK" ){
			// Run your successful script here
		}
		else
		{
			//Pressed CANCEL, run cancellation code or do nothing
		}
	} 
);

...