I am using Servoy 3.5.10 and I am trying to create this functionality: to open a form in dialog using the method application.showFormInDiaog, and after the form is popped, to still be able to work in the form that is showed under the dialog. I thought this is possible using a modal dialog,but it seems it is not possible using either one of them (modal or non modal). I use this combination of parameters:
application.showFormInDialog( ‘waptz_contact’, null, null, null, null, ‘Form in dialog’, false, null, null, false)
also:
application.showFormInDialog( ‘waptz_contact’, null, null, null, null, ‘Form in dialog’, false, null, null, true)
Neither allowed me to work under the form in dialog, I have to close the dialog before being able to work in the application.
Can you give me an advice in how to make this work?
you have to give the FID a name. (in the sample called: ‘mydialog’)
Have you tried that?
this is the sample:
//Show the specified form in a modal dialog 'contactsdialog', on default initial location and size (x,y,w,h)
//application.showFormInDialog(forms.contacts, 'contactsdialog', true);
//Note: No code is executed after the showFormInDialog until the dialog is closed if it is created as a modal dialog.
//Show the specified form in a non-modal dialog with a specified name, on default initial location and size (x,y,w,h)
//application.showFormInDialog(forms.contacts,'contactsdialog',false);
//Show the specified form in a modal dialog, at a specified initial location and size with custom title, not resizable but with text toolbar,
application.showFormInDialog(forms.contacts,100,80,500,300,'my own dialog title',false,true,'mydialog',true);