Form Closes unexpectedly

Started by Rakesh Rao, October 01, 2021, 11:24:35 PM

Previous topic - Next topic

Rakesh Rao


Dear Forum Support,

I am stuck with a weird problem for the last 6 hours.

I have a modal dialog A which closes itself and launches another dialog B when the "Next" button is clicked in the dialog A.

Now, there is a "Previous" button in dialog B which, when clicked, closes B and launches dialog A again.

I expect dialog A to show up on the screen now, but, for some strange reason, it shows dialog A momentarily and immediately shuts it down.

On inspection, I found that the onClose event of dialog A is firing up for some reason.

Any clues, pointers? What am I doing wrong?

The strange thing is that I can open child dialogs but when I try to re-open the first dialog wihich I closed, it does open and closes despite a call to (dl-Form-Show...)



Best Regards
Rakesh Rao


Rakesh Rao

Dear Forum Users,

Upon further debug inspections, the OnClose event is firing in a non-synchronized way. So, it did not fire when I closed the dialog first, but fired when I opened it again. And that is why it closed again. Strange...

Many thanks and Best Regards
Rakesh Rao

dsm_dude

can you upload your lisp or provide a snippet so we can better assist you?