Hi.
I found a litle difference openinng/closing several dialogs betwen Smar Client and Web Client.
If I open 2 dialogs (showFormInDialog) at the same time in Smart Client, when I close one dialog (closeFormDialog(‘<dialog_name>’) ) the other dialog is closed too. In Web Client they are independant, closing one dialog doesn´t close all the dialogs. Is this the expected behavior?
Thanks in advance.
my_sample_solution.servoy (14.7 KB)
the problem seems to be that somehow dialog2 has as parent dialog1, but that is not what you do (you dont open dialog2 from inside dialog1)
if you for example place 2 buttons on the main form, 1 open dialog 1 and 2 open dialog 2 with these scripts:
function onAction(event) {
application.showFormInDialog(forms.dialog1,null,null,null,null,'',true,'','Dialog1',false);
}
function onAction1(event) {
application.showFormInDialog(forms.dialog2,null,null,null,null,'',true,'','Dialog2',false);
}
you see it works fine. So the problem is that the first dialog that you show is already the "front’ so it thinks that you open it from there.