Calling an onHide event in a form in a dialog doesn’t fire the attached method the second time…
Have a look at the attached sample after reading the below:
I have made the sample solutions with 2 forms. The second form shows after hitting a button on the first form.
I have a method attache on the onHide event of that second form that prevents the form from closing (return false) when conditions are false.
All works fine if I try to hide/close the form for the first time.
When conditions are true the form closes, when conditions are false the form doesn’t close. The conditions are shown in the debugger with application.output();
But… When you try to close the form for the second time without changing the conditions the form closes anyhow. Looking at the debugger shows that the method attached to the onHide event wasn’t reached…