This is another example of how bad, and wrong, the Alpha documentation is.
A good tip that works for some methods, and does work for showWaitMessage, is to create Action Javascript... and then turn that action into code. The action has a property for "Auto close after how many milliseconds". Fill that in and when you turn the action into code you'll see how it's used...
Code:
{dialog.object}.showWaitMessage('container:CONTAINER_1',{useCSSAnimation: false,message: 'Wait...',icon: 'css/A5System/Images/wait.gif',waitMessageAutoCloseDelay: 10000});
In the in-line help for this action, in the milliseconds property, you'll see a reference to {dialog.Object}.waitMessageAutoCloseDelay. This is a dialog property you can set in your Javascript code.
Set a long wait message time and then your hideWaitMessage() will close the message when you run it.
Code:
{dialog.Object}.waitMessageAutoCloseDelay = 65000;
{dialog.object}.showWaitMessage('container:CONTAINER_1',{useCSSAnimation: false,message: 'Wait...',icon: 'css/A5System/Images/wait.gif'});
Bookmarks