addToggleListener binding for CAF.Dialog.Modal.Model

hi All,

Could you please let me know how to use addToggleListener method for CAF.Dialog.Modal.Model

Have gone through the documentation given at http://techcommunity.softwareag.com/ecosystem/documentation/webmethods/wmsuites/wmsuite8-2_ga/My_webMethods/8-2-SP1_CAF_JavaScript_Reference/CAF.Output.Model.html#addToggleListener and tried as given below but no luck.

CAF.model('#{activePageBean.clientIds['modalDialog']}').addToggleListener
(function(id, way) {
	alert('Toggle Event triggered');
});
CAF.model('#{activePageBean.clientIds['modalDialog']}').addToggleListener
(function(id) {
	alert('Toggle Event triggered');
});

Environment: webMethods 713

I want to execute custom code if a model dialog is toggled to display to user.

Couldn’t find much documentation on it except the one above. Could you please give an idea how to bind this listener?

Kind regards,
Raja sekhar Kintali

What you have done looks correct. It looks like this defect was fixed in more recent versions of MWS. Is there any chance of upgrading to the latest version of MWS? If not, you will need to file an SR to get the fix ported back to MWS 7.1.3.

hi Eric,

Thanks for your inputs :). Filed SR to get fix for 7.1.3.

Kind regards,
Raja sekhar Kintali