tag:blogger.com,1999:blog-267713902572011003.post7571901142148250149..comments2023-10-26T11:54:01.495-04:00Comments on Maxime Tremblay's Blog: Handling Dialog Cancel EventMaxime Tremblayhttp://www.blogger.com/profile/07663723545046859479noreply@blogger.comBlogger6125tag:blogger.com,1999:blog-267713902572011003.post-15323109091436232862019-10-02T03:09:03.055-04:002019-10-02T03:09:03.055-04:00Thank you Maxime. This looks neat and clean way to...Thank you Maxime. This looks neat and clean way to define and handle custom events. I have to use this with version 19.1 as well as I hope there is no build-in way to handle dialog cancel event. Your solution works great from 2016 :-). Cheers.Jaydip Bosamiyahttps://www.blogger.com/profile/13662531442108216639noreply@blogger.comtag:blogger.com,1999:blog-267713902572011003.post-79344584443517446182018-09-29T05:33:56.514-04:002018-09-29T05:33:56.514-04:00Hi Max, thanks to your APP I figure out how it wor...Hi Max, thanks to your APP I figure out how it works, I have a question now, how can I use the para 'data' in the dynamic action?Anonymoushttps://www.blogger.com/profile/02034827780895633820noreply@blogger.comtag:blogger.com,1999:blog-267713902572011003.post-6241180463145015502018-04-19T11:30:15.593-04:002018-04-19T11:30:15.593-04:00Hello Vladimir
The jQuery "Close" method...Hello Vladimir<br />The jQuery "Close" method will always be fired regardless of what's triggered (close or cancel).<br /><br />It's just that APEX handles its internal event only and that only the close event is triggered.<br /><br />But yes, you could change the "Dialog Cancel Code". But to do so, you would need to either unsubscribe from the UT or to copy the template. Avoid unsubscribing from UT as much as possible.<br /><br />Regards<br />MaxMaxime Tremblayhttps://www.blogger.com/profile/07663723545046859479noreply@blogger.comtag:blogger.com,1999:blog-267713902572011003.post-65788131592197325742018-04-10T10:23:50.626-04:002018-04-10T10:23:50.626-04:00Hi, why we cannot change behaviour of "Clicki...Hi, why we cannot change behaviour of "Clicking on the top right "X" icon/button" with help of modal_dialog template section called "Dialog Cancel Code"?Vladimirhttps://www.blogger.com/profile/07054756837898421194noreply@blogger.comtag:blogger.com,1999:blog-267713902572011003.post-85912790476837928442016-11-04T17:21:53.531-04:002016-11-04T17:21:53.531-04:00The page "Attributes" attribute is exten...The page "Attributes" attribute is extending the current jQuery UI dialogclose event. The modal dialog is built on top of jQuery UI Dialog. It's doing the same as if you used <br />$( ".selector" ).dialog({<br /> close: function( event, ui ) {}<br />});<br /><br />Both Close and Cancel DA are triggering the close modal event of the jQuery Dialog. The difference is that only the Close DA (or process) is then triggering the "Apex Modal Closed" event.<br /><br />From what I could find, there was no way to differentiate the Close from the Cancel.<br /><br />Let me know if I missed anythingMaxime Tremblayhttps://www.blogger.com/profile/07663723545046859479noreply@blogger.comtag:blogger.com,1999:blog-267713902572011003.post-37117647799837599222016-11-04T15:30:15.898-04:002016-11-04T15:30:15.898-04:00I don't recommend putting code in modal dialog...I don't recommend putting code in modal dialog page attribute. Why not use the already existing jQuery UI dialogclose event?<br />Different dialogs can be distinguished by a css class you give it. The hard part is distinguishing a cancel from a close.John Snydershttps://www.blogger.com/profile/02916170627894187588noreply@blogger.com