At the moment the way that I do it is by adding an HTML control to my form and leaving the HTML code blank then naming the control ALERT
In the form shared functions, I link to a script which I created and is common to all applications called GLOBAL_FUNCTIONS.
In GLOBAL_FUNCTIONS, I have an alert function that is defined like this:
Code: Select all
function alert(msg) {
controls.ALERT.htmlText.setText('<HTML><BODY><SCRIPT>alert("' + msg + '");</SCRIPT></BODY></HTML>');
}
I tried using the Java JOptionPane way but that does not work either. This line of code causes my entire application to hang.
Code: Select all
JOptionPane.showMessageDialog (this, "This is a message box");
Has anyone found a way to display a simple message control that just works ?