Form in Dialog problems

I am trying to use two forms in dialog and I’m having strange results.
The application shows a NameList form with name and address info in a listing format. Clciking on a line should bring up a name form that will display detailed information about the entry and allow editing.

the strange behaviours include:

  1. Clicking on a line in the NameList form will display the name form in dialog, but the NameList form will disappear. Is there a way to have both the NameList and the name forms visible so that the user can refer to both at the same time?
  2. Clicking on the close button of the name form dialog will return to the NameList form, but will not allow the name form to be launched for other records on the NameList form. Clicking on an area in the name form (other than an entry field or a button) will dismiss the name dialog, but WILL allow other NameList records to be displayed in dialog. Why are there two different behaviours? I would like the forms to stay on the screen until the user explicitly closes them. Can this be done?

I’m including my solution in case you would like more detail.

  1. Clicking on the close button of the name form dialog will return to the NameList form, but will not allow the name form to be launched for other records on the NameList form. Clicking on an area in the name form (other than an entry field or a button) will dismiss the name dialog, but WILL allow other NameList records to be displayed in dialog. Why are there two different behaviours? I would like the forms to stay on the screen until the user explicitly closes them. Can this be done?

Found the error on the above. I had a method oNSaveRecord event firing that was closing down the dialog. I removed it and this part is working correctly now.

Would still like to know the answer to behaviour #1 though :)

What do you mean by: disappear.
When I load your solution, and some new records, the dialog comes up, but the list-view is still viewable. it does not disappear, because you said it your self, you want that people to close it first, before the return to the list.
I cant figure out your problem!

When I am on the splash form and press the “button” button, I see the dialog for NameList.
Then, when I click on one of the lines, the name form dialog shows with the detail from the appropriate name record, but the NameList form (the one that shows all the records in a list form) disappears. Underneath the name dialog is the original splash form. If I dismiss the name dialog, the NameList form shows up again.
What I would like to see is the splash screen on the bottom, then the NameList form, then the name form (the one with the details) on top. so that I can see all three screens.

Ah I see the problem. that I have to pass thru the guys of Servoy

I don’t still understand, why you want to use list-view in a dialog and than on top of that another dialog. M-Mts a matter of taste, I think :wink:

I am not sure if I understand correctly but if I do, and you want to use more than 2 forms than… In that case… I can imagine that that goes wrong.

The ‘splash form’ is modal. And, as such doesn’t allow another form to be open or, in other words, you have close that window to show another…

This could cause the problem with your third form.

Hope this helps a bit?

Ciao,

Marcel

It is possible to show a formDialog from within a formDialog (it just replaces the first and shows second, so when closing second it auto returns to first)

Jan:
Yes, this is indeed what I am doing. My problem, however, is that I want the user to see both dialogs so that information form both can be viewed, perhaps by moving the windows around on the desktop.
The first dialog contains a list of names and addresses that are possible duplicates, the second dialog presents additional fields for a selected record some of which do not appear on the list form.
In FM you could toggle the Widow between Restore and Maximize to be able to show two windows at the same time.
CAn anyone suggest a work-around?

workaround: Don’t use the first form in a dialog! but in a normal form.
only use the detailed-view in a dialog!, Than you have both views visible!