Author Topic: Form Closes unexpectedly  (Read 97 times)

Rakesh Rao

  • Member
  • *
  • Posts: 25
Form Closes unexpectedly
« on: October 01, 2021, 11:24:35 PM »

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

  • Member
  • *
  • Posts: 25
Re: Form Closes unexpectedly
« Reply #1 on: October 02, 2021, 12:01:28 AM »
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