Serv. 401: titleText can't be set on formInDialog

Hello!

The titelText on a showFormInDialog window displays always the formname (frm_name_dialog), although I have the function:

application.showFormInDialog(forms.frm_name_dialog,[-1],[-1],[-1],[-1],["Text"],[false],[true],["form_name"],[false])

If I set the titleText in the form properties, than that would be displayed.

Regards
Thomas

i just tested this and this works fine for me:

application.showFormInDialog(forms.order_items_real,-1,-1,-1,-1,"TEST TEST",false,false,"mytest",true);

Hi Thomas,

You don’t need to use the square brackets around your values. This makes them arrays and showFormInDialog expects integers and strings.
I know the help/info text shows them but that just designate them as optional parameters.
So your code should look like:

application.showFormInDialog(forms.frm_name_dialog, -1,-1, -1,-1,"Text",false,true,"form_name",false)

Hope this helps.

Thank you guys!

That’s it! No brackets no problems :)

Thomas