bug in application.showFormInDialog()

Hello,

There is a bug when you open a form in a dialog from a form that’s in a dialog.

To simmulate:

  • Create three forms, One, Two and Three.

add one methods to form One

openTwo:

forms.Two.show();

add methods to form Two

show:

application.showFormInDialog( this, -1, -1,  640, 480, "Two", true,  false, false )
plugins.dialogs.showInfoDialog( "Two",  "closed!",  "ok" )

close:

application.closeFormDialog( false )

openThree:

forms.Three.show();

add methods to form Three

show:

application.showFormInDialog( this, -1, -1,  640, 480, "Three", true,  false, false )
plugins.dialogs.showInfoDialog( "Three",  "closed!",  "ok" )

close:

application.closeFormDialog( false )

When you open Two from one, on the close method the messagebox “closed!” is displayed (code execution does wait for formdialog). When you open Three from Two, the messagebox" closed!" is displayed imimmedialtly (code execution does NOT wait for formdialog).

It would be very nice if it could be solved quickly…

Anton Dorrestijn

We are unable to reproduce this in Servoy 2.1.2, could you send a sample solution by mail?

are you just saying that you open a form in dialog from a form that is already in a dialog? (so you are displaying 2 forms on top of each other in the dialog?)

Yes this is know. If you display the second form in the dialog then the code will execute directly after the call show in dialog. For now you have to program with this in mind.

I have the same pb.

It sometimes dificult to program with that.