openFormInDialog bug

I have a detailed form of a record which is shown in a Dialog.
In that form, there is another function which opens another (different) form in a dialog. This goes wrong!
The dialog is messed up en looks like is did’nt refresh. Buttons in that dialog doesn;t work correctly too.

Anybody?

I think that a dialogue is meant to be a modal function. Which means you need to close out of one modal thread before opening another. It’s not entirely clear that it is modal though since you can do most operations via methods while a dialogue is open. Opening another ‘modal’ thread while one is already running is probably not on the list of allowed operations though :)

Just a guess,

  • david

OkM-i, but if that is true, Servoy must prevent this from doing this, (I hope they don’t and fix it) because now this goes completly wrong!

currently you can’t have 2 formdialogs open. Because internally there is just one at the moment, so if you want to show the second form you are replacing the current contents instead of opening another dialog…

You want 2 dialogs open on top of each other?

We will look at it, at least build in a check that this is not possible at the moment.

This is fixed in the next release, recurring calls to showFormIndialog switch the form in the dialog closeFormDialog in dialog has history stack and removes forms (closeFormDialog has optional closeAll option)

example:
-call to showFormIndialog shows form1 dialog
-call to showFormIndialog shows form2 in same dialog (modifies size if needed)
-call to closeFormDialog shows form1 again (bring back original size)
-call to closeFormDialog hides dialog

GREAT! I’m looking forward to it!

Jan Blok:
This is fixed in the next release, recurring calls to showFormIndialog switch the form in the dialog closeFormDialog in dialog has history stack and removes forms (closeFormDialog has optional closeAll option)

example:
-call to showFormIndialog shows form1 dialog
-call to showFormIndialog shows form2 in same dialog (modifies size if needed)
-call to closeFormDialog shows form1 again (bring back original size)
-call to closeFormDialog hides dialog

This makes Servoy (Dev 1.2rc8) hang under MacOS 10.2.8

It works in client on win XP.

yes i reproduced it on mac os 10.2.8 with jdk 1.4.1_01-68
but this is an apple bug that apple already fixed on 10.3
with the jdk version: 1.4.1_01-99

I guess I just will have to wait till the panther comes.

Will it not be repaired on Jaguar?

I cannot force my clients to upgrade.

Thank you anyway for the information.

I don’t know it exactly but i don’t think a OS upgrade is needed, just the jdk.