AlexMauer

mobile device aware layout selection script

Discussion created by AlexMauer on Feb 10, 2016
Latest reply on Feb 10, 2016 by AlexMauer

Hello, I am trying to writw a mobile device aware start up script so Filemaker go selects the right layout to use when going into filemaker go. Following examples arounf the web:

If

[PatternCount ( get (ApplicationVersion ) ; "Go" ) =1]

go to Layout [“_SPACE_DATA_iphone_5c”]

Else

Go to Layout [“_SPACE_DATA_012816.xls_SPACE DATA”]

End if

 

I am making this in the script workspace and when I type IF, it looks for a clculation. I have typed the content in the script in there and it doesn't work....i Get an error on the first bracket - A number, text contant, field name or "(" is expected here" and the bracket in front of PattenCount is highlighted.

 

So its not a calculation. I cant seem to find script editor in the Filemaker Pro 14 advance version I am using. Can Anyone help me figure out I can get this script to save much less run?

 

Thanks,

Outcomes