Versions Compared

Key

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


Code Block
languagejs
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"

...

setField("ChosenVendorNo",getField("SelVendorNo"));
setField("ChosenVendorName",getField("SelName"));
setField("ChosenVendorStreet",getField("SelStreet"));
setField("ChosenVendorCity",getField("SelCity"));
setField("ChosenVendorPostCode",getField("SelPostCode"));
setField("ChosenVendorEmail",getField("SelEmail"));
setField("ChosenVendorHSECCategory",getField("SelHSEC"));
setField("VendorDetailsVisible",true);
setField("ContractSearchVisible",true);
setField("RBContractExistYes",false);
setField("RBContractExistNo",false);
goToPage("PRCreateId");

...

 ){
			// Run your successful script here
		}
		else
		{
			//Pressed CANCEL, run cancellation code or do nothing
		}
	} 
);


Related articles

Filter by label (Content by label)
showLabelsfalse
max5
spacescom.atlassian.confluence.content.render.xhtml.model.resource.identifiers.SpaceResourceIdentifier@223dfe
showSpacefalse
sorttitle
typepage
cqllabel = "javascript" and type = "page" and space = "IFAB"
labelskb-how-to-article

...