Page 1 of 1

GTRR script step multiple windows FM8.5

PostPosted: Wed Jan 17, 2007 8:15 am
by David Fox
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

Re: GTRR script step multiple windows FM8.5

PostPosted: Wed Jan 17, 2007 11:48 am
by John Sindelar
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.

PostPosted: Thu Jan 18, 2007 8:13 am
by David Fox
Thank you John.

Will give it a try.

Best regards,

David