GTRR script step multiple windows FM8.5

General support questions.
Posts: 58
Joined: Tue Jul 26, 2005 12:08 pm
Location: London
PostPosted: Wed Jan 17, 2007 8:15 am
Hi All,

I have a multiple file database. With the script step Go to Related Records, and using the ‘Show records using external tables layout and ‘show in new window’ I get the following:

If the external file is not open its fine (although it appends the external files window name with a ‘- 2’. If the external file window is already open then it opens an additional one.

Removing the ‘show in new window’ option is fine as long as the external file is already open. If it’s not open then nothing happens at all.

I should know the solution to this but I am drawing a blank!

Many thanks.

David
SeedCode Staff
SeedCode Staff
Posts: 2759
Joined: Thu Nov 20, 2003 11:01 am
PostPosted: Wed Jan 17, 2007 11:48 am
Perhaps you want to test for the window being drawn using the WindowNames () function and call "new window" conditionally based on that?

Or you can remove the "new window" in all cases and simply follow your GTRR with SelectWindow() and the name of your target file.

BTW I'd just make a distinction between the file being open (it is probably already open) and its window having been drawn.

HTH.
John Sindelar
SeedCode
Posts: 58
Joined: Tue Jul 26, 2005 12:08 pm
Location: London
PostPosted: Thu Jan 18, 2007 8:13 am
Thank you John.

Will give it a try.

Best regards,

David

Return to General Support

Who is online

Users browsing this forum: No registered users and 2 guests

(855) SEEDCODE
support@seedcode.com
Follow us: