jon.correa
03/11/2020, 2:29 PMfunction onButtonClick(){
myMsg2 = message.create({
title: "Work Order Issue",
message: "Creating and Auto Allocating Work Order Issue",
type: message.Type.INFORMATION
});
myMsg2.show()
var response = <http://https.post|https.post>({
url: outputURL,
body: JSON.stringify(bodyObj)
});
}
Any ideas?dmashburn3
03/11/2020, 2:35 PMfunction showSpinnerAndDoLogic(spinnerHtml) {
jQuery('#div__body').css('display', 'none');
jQuery('body').append(spinnerHtml);
goDoThings = function () {
//Do some business logic here
};
setTimeout((function () {
return goDoThings();
}), 25);
};dmashburn3
03/11/2020, 2:35 PMKris Wood
03/11/2020, 2:43 PM<http://https.post|https.post>().promise(). In your .then() put myMsg2.hide() followed by your response message, and in your .catch() put myMsg2.hide() followed by an error message.Kris Wood
03/11/2020, 2:44 PMjon.correa
03/11/2020, 4:54 PM