Form In Dialog Title isn't showing properly

Hi,

In one of my solution, a Form is displaying as Dialog. I have written the below code to popup.

//Shows the New Record Form in Dialog
application.showFormInDialog(forms.DeFrm_newRecord, -1, -1, -1, -1, "Create New - Record",false,false,false);

And, the issue is that, the Dialog title is not showing at the beginning, when you first show the Dialog, and after that it is copying the title of other opened form in dialog on subsequent running of the application.

I surprised in this unexpected behavior :x , and not finding any solution for this.

Ars, I have this problem too and I posted this in this forum thread:
http://forum.servoy.com/viewtopic.php?t=8344. I also submitted it to Servoy in the issue tracker as 96535 in November. They couldn’t reproduce it. Can you send them a sample solution? Mine is in SQL Server 2005 with lots of stored procs and they’d get too many errors if I tried to sample it.

I find it only happens on new records – not with editing old records.

Hi ellenmeserow,

I will try to make a sample solution, in which the issue can be reproducible and will post in the Support system soon.

Posted in the support System, case No : 107722

Waiting for the status changed… :wink:

Hi Ars,

your call to open the formInDialog is wrong.
please look at the sample-code now in Servoy 3.5.3.

it is now:

application.showFormInDialog(forms.contacts,100,80,500,300,'my own dialog title',false,true,'mydialog',true);

HJK:
Hi Ars,

your call to open the formInDialog is wrong.
please look at the sample-code now in Servoy 3.5.3.

it is now:

application.showFormInDialog(forms.contacts,100,80,500,300,'my own dialog title',false,true,'mydialog',true);

Hi Harjo,

I am using 3.5.2 and tested your code, but the same problem persist… :oops:
In 3.5.2, the “showFormInDialog()” sample is also saying the same thing…

Let me check at 3.5.3 as well…

Hmm, I don’t see this behaviour in 3.5.3

this is my code:

application.showFormInDialog(forms.activities_popup,-1,-1,-1,-1,'i18n:1.activities',true,false,'activities_popup',true);

I see the the Dialog title (which is in my case i18n), right from the first time.

It only happens on new records in form in dialog – not editing them. That may be the problem you’re having recreating. I am attaching a screen shot of it doing it in 3.5.3. It’s showing the previous ForminDialog title I had open last.

Here, I am attaching one sample solution to reproduce the issue…

Steps to reproduce the Issue :-

  1. Click on “Show Dialog” button. (It will show the Form in Dialog with the Title blank)

  2. Click on the “Show Another Dialog” button. (It will show the Form in Dialog with the Title “Another Dialog”.)

  3. Click again on the “Show Dialog”. (It will show the Form in Dialog with the title from the previously opened dialog i.e, “Another Dialog”)

DialogTitle.servoy (5.25 KB)

I still cannot reproduce it.

I press the show dialog button and the title shows ok.
I press the show another dialog button and the title shows ok.
I press the show dialog button again and the title shows ok.

I am using Servoy 3.5.3 however. Will try 3.5.2.

3.5.2 works fine too - for me…

I was looking at the new dialog (first one that appears) and the title was fine for that one. I always closed that one instead of clicking “OK”. :oops:
So now I know what to do.

This issue is corrected in the next public release of Servoy (3.5.4).