There are built-in functions can display message in Aras Innovator, including success/error/warning message and confirm/prompt box. Besides, this article will also introduce how to handle status bar.
※When using Google Chrome, native JavaScript cofirm box will be displayed instead.
Success Message
aras.AlertSuccess('Message Here');
Error Message
aras.AlertError('Message Here');
Alert Message
aras.AlertWarning('Message Here');
Confirm Box
if (aras.confirm('Message Here'))
{
//Do somthing after click OK
}
else
{
//Do somthing after click Cancel
}
※When using Google Chrome, native JavaScript cofirm box will be displayed instead.
Prompt Box
aras.prompt('Message Here', 'Default').then(function(value) {
if (value)
{
//Do somthing after enter text
}
});
Show message in status bar
var statusId = aras.setStatus('Message Here');
Show progress in status bar
var statusId = aras.setStatus('Loading…', '../images/Progress.gif');
Reset status bar
aras.clearStatus(statusId);
can anyone knows how to display the toast message in red color ? is aras.AlertSuccess API support different color apart from green?
ReplyDeletePassing HTML syntax is possible, that means you could decide the style for message.
Delete