Modal DMI / RPC

How can I make a DMI call modal i.e. when the user makes a selection that causes an DMI call we need to interface to freeze (for lack of a better word) so that the user can’t re-select the same operation, or other operations, until the original DMI is finished. BTW: Using the DMI Proxy stub solution.

Thanks,
Mike

Hi Mike -

The easiest way to do this is to call isc.showPrompt() - this sets up a modal dialog until you call isc.clearPrompt(). Docs here:

http://www.smartclient.com/docs/5.5.1/a/b/c/go.html#classMethod..isc.showPrompt
http://www.smartclient.com/docs/5.5.1/a/b/c/go.html#classMethod..isc.clearPrompt

So call isc.showPrompt() right before you call your DMI and isc.clearPrompt() in the callback.