Any chance you have a script trigger on the target layout?
And is the new window card the final step of the script, or is something else still executed?
I tried using the card on different layouts and it always shows the start page. I don't have a script trigger on the layout.
I am using a simple script that only has a new window step.
What, if You specify another layout after the card window was created? (2 script steps)
I tried that and it just send me to that layout. I made a clone of the solution and tried the script on a mac using FM 16 and it works perfectly.
Do You have FileMaker Advanced? Would be interesting to check that in the debugger...
You say your script does not work.
It always works better to SHOW us the script.
Or the file; or an example file.
Unfortunately, I do not have Filemaker advanced on the Windows machine. Filemaker would not allow us to put it on the Citrix server.
Here is the script I am using...
New Window [ Style : Card ; Name: Get(Windowname) ;
Using Layout: "Ref Source" (RerSource) ; Height: 700 ;
Width: 300 ; Top: 0 ]
On the MAC the the result is Ref Source layout on the Card as expected
On Windows the result is the Start Page Layout regardless of a change in the layout either current or another layout.
(Ref Source is a simple layout in list view with 2 fields based on a table called "RefSource")
(Start Page is a complicated layout with multiple fields and layout objects that is based on a table called "Patients")
Thanks for the file. I'll need to check it tomorrow when I'm in the office. I'll let you know what happens. As far as the size of the card, I tried the card without specific sizes and with exact sizes and no changes seen. I still get the error.
The file you sent works well on my Windows/Citrix setup.
It seems that with Windows you need to add a Go to Layout command after the New Window(Card) Command. Whereas with MacOS using the New Window(Card) Command alone is sufficient. At least, from my perspective this seems to work.
AFAIK, there is no restriction on putting Advanced on a Citrix server, it would just be restricted to a single user. You should be able to put it on long enough to test the app in the debugger.
It seems that with Windows you need to add a Go to Layout command after the New Window(Card) Command.
I don't think that is correct. I'm using FileMaker 16 Advanced on Windows 10 (Creator Update installed). Just created a test file with two layouts: a table view listing layout and a form view. With a record selected in the table view layout, I invoked a simple script that displays the details for the selected record in a card window. Works fine. The script has just 1 step:
New Window [ Style: Card; Name: "Card"; Using Layout: "Form" ]
In other words, as far as I can see it works in Windows 10 exactly as it works in latest version of Mac OS X: a single new-window step, specifying a layout to go to, will create the window AND go to the layout.
Yes, you're right. It's just that I'm not one of the decision makers at the corporate level.