Hi,
I am tring to have more than 1 form in a ‘show in dialog window’, but when i try to open a 2nd ‘show in dialog window’ the first form disappears.
Any Ideas??
PR
That is expected behavior…
Hi PR
If you use ```
application.showFormInDialog(forms.contacts,100,80,500,300,‘my own dialog title’,false,true,true);
Use ```
application.closeFormDialog(false); //closes only the last open form in the dialog to close the forms one at a time i
``` to close the forms one at a time.
This enables you to control what users are seeing and branch off depending on their choices.
HTH
Graham Greensall
Worxinfo Ltd
Hi HTH,
Thank you for your reply, this is the code I am currently using, but I am a bit unsure where to use the application.closeFormDialog(forms.invoice_data_entry,false);
code as you suggested.
forms.invoice_data_entry.inv_view_only(); //validation sub-script
application.closeFormDialog(forms.invoice_data_entry,false);
application.showFormInDialog( forms.invoice_data_entry,-1,-1,650,850,'Invoice Details',true);
I thought the above would keep the form.invoice_data_entry open until I close it manually.
Sorry in advance if I am just stupid
PR
No problem - but you cannot control the order that Forms in Dialog close - last one opened is the first one closed.
application.closeFormDialog(false); - close the last opened form but leaves any previous ones open and displays the last-but-one to be opened.
application.closeFormDialog(); - closes ALL forms opened with Form in Dialog command.
Graham Greensall
Worxinfo Ltd