You did not specify what version of MWS this is for. In 9.10, it is possible for an action handler to respond with script to run on the client side. If you are on 9.10 then I can give you an example of how to do that.
For earlier versions, in order to toggle a modal dialog open from the server side would require you to either:
- Render a script block control as part of the panel that is being refreshed by the async command that runs a script that toggles to dialog open
- Render a “Control/Toggle/Initiate Toggle” control as part of the panel that is being refreshed by the async command.
If your goal is actually to block the browser navigation when there are changes in some form that have not been posted back to the server, then the CAF framework doesn’t have an out-of-box solution that provides capability automatically for you. However, all the pieces should be in place for a custom script to accomplish that with some work by keeping track of the original form values and comparing them to the current values before allowing the current page to be unloaded.
If there are areas that you or a customer would like to be improved in documentation or functionality, then you can make a proposal in brainstorm @ https://empower.softwareag.com/Products/FeatureRequestsInBrainstorm/default.asp for consideration in a future release.
#MWS-CAF-Task-Engine#webMethods-BPMS#webMethods