Welcome to the SRP Forum! Please refer to the SRP Forum FAQ post if you have any questions regarding how the forum works.
Embedded forms and dialog_box
I'm launching a dialog_box from a form set in a panel. When I use end_dialog, the returnval doesn't return to the calling routine.
If I run the embedded form just on its own and then launch the dialog_box everything works as expected.
Any thoughts as to where my retval may be getting lost once the form is in a panel?
If I run the embedded form just on its own and then launch the dialog_box everything works as expected.
Any thoughts as to where my retval may be getting lost once the form is in a panel?
Comments
When calling dialog_box I was passing the name of the embedded form as the parentID. Still launched and appeared to work exactly the same except for the non returning value.
If I call dialog_box passing the parent of the embedded form, ie the form that has the panel as the parentID the result is returned.
So I guess that means that an embedded form loses it's right to parenthood and dialog_box whilst appearing to work, loses its modality.
Thanks for the prompt.
The response won't be returned unless you pass the name of the window that contains the panel as the parent even if it is a function of the embedded form that is triggering the OI message.