|eMode||Valid values are:|
|sOptWaitMessage||Optional message to display|
Procedure SetActionMode Handle hMessage Integer eMode String sOptWaitMessage
|Call:||Send SetActionMode hMessage eMode sOptWaitMessage|
This advanced feature allows developers to configure a wait dialog for every server-action just as you can with the pbShowWaitDialog property of the cWebButton class.
This example shows how to show a wait dialog can be shown while processing the OnClick of a menu item (cWebMenuItem). Other action modes that are available are: scModeWait, which will lock the UI and show a wait cursor and scModeDefault, which doesn't lock the UI and doesn't show a wait cursor.
Object oMenuItem is a cWebMenuItem Set psCaption to "Long process" Procedure OnLoad Forward Send OnLoad Send SetActionMode (RefProc(OnClick)) scModeProgress "Please wait while sleeping..." End_Procedure Procedure OnClick // Do something long Sleep 4 End_Procedure End_Object
When a server action triggers another server action (like ProcessDataSet on cWebList), then it will keep the wait dialog on the screen until the new server action is processed.
Note: You can only mark published messages that the client sends to the server this way.
Publishing Web Object Interfaces