230
Views
5
Comments
Solved
How to display a dialog box when I close the popup
Application Type
Traditional Web

When I close a popup window in Traditional Web application, I want to display a dialog box to ask if I want the edited content to discard, but when I press the Cancel button, the popup closes.

I would like to know how to prevent closing the popup when the cancel button is pressed.

Or, if there is no way to fix this problem, I would like to know an alternative way to notify those information.


2021-06-01 05-56-33
Komal Kumbhar
Solution


Hi Yuki,

I have made some changes in your OML, Instead of using popup you can use modal preview, it will also reduce your AO's . You can find it in PopupDemo screen in OML file,

Hope this help,

Regards,

Komal

ConfirmDiscardingnew.oml
2021-06-01 05-56-33
Komal Kumbhar

Hi,

Is it possible for you to share your OML ?

Regards, 

Komal

UserImage.jpg
Yuki Kitaguchi

Hi Komal,

I've attached the OML.

I hope this helps!


ConfirmDiscarding.oml
2021-06-01 05-56-33
Komal Kumbhar
Solution


Hi Yuki,

I have made some changes in your OML, Instead of using popup you can use modal preview, it will also reduce your AO's . You can find it in PopupDemo screen in OML file,

Hope this help,

Regards,

Komal

ConfirmDiscardingnew.oml
UserImage.jpg
Yuki Kitaguchi
2021-06-01 05-56-33
Komal Kumbhar

You're Welcome !!

Is your issue resolved Yuki?

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.