I am getting strange issue at form in dialog. I have Form dialog open and executing some method from the same form which will executes something and close the form in dialog. Now While dialog form method is executing and i am clicking on back gourd form button, when form dialog is closed servoy executing method of the button which i were clicked. I think this is not the usual behavior of form in dialog. Any one has any idea why it is happening.
Is form in dialog modal or not ? I guess this is smart client, right ? Seems like the event is put in queue and will be dispatched after form in dialog is closed ( as they execute in same thread).
This is not so much modal/non modal behavior, as it is Smart Client behavior: If you click on elements while a method is running, those clicks will be processed once the method stops running.
In this case, if you would make the dialog modal, the underlying form gets completely blocked/disabled/…, so it’s not able to register these clicks at all, so nothing will be executed after the method is finished.
pbakker:
In this case, if you would make the dialog modal, the underlying form gets completely blocked/disabled/…, so it’s not able to register these clicks at all, so nothing will be executed after the method is finished.
I have done the same, but the result is the same i am attaching a sample solution which will clear what i want say.
Please follow this step to get the issue.
Click the Form Dialog button, which will open form in dialog.
Click on the sleep button on dialog form.
Just after that click browse button of underlying form.
It will show the massage of browse button method. After closing the form.
pbakker:
In this case, if you would make the dialog modal, the underlying form gets completely blocked/disabled/…, so it’s not able to register these clicks at all, so nothing will be executed after the method is finished.
I have done the same, but the result is the same i am attaching a sample solution which will clear what i want say.
Please follow this step to get the issue.
Click the Form Dialog button, which will open form in dialog.
Click on the sleep button on dialog form.
Just after that click browse button of underlying form.
It will show the massage of browse button method. After closing the form.
Thanks
Sorry, but I cannot reproduce this; I don’t get the info dialog no matter how much Itry to click on browse button. Do you get this in debug smart client ? What Servoy version are you using ?