Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
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) | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...