December 6, 20214 yr Happy holiday season, everybody. I just can't get Get(SystemPlatform) to work in WebDirect: When a user logs into a database using WebDirect, I want to steer them to a web-formatted layouts so I have in a script: If [Get(SystemPlatform) = 4] Go to Layout... blah blah blah I also tried the same instruction with quotations marks surrounding the 4, but that doesn't work either. Am I using the correct command or no? Because the same users can access the database via WebDirect or with FMP, I can't code scripts so they're taken to specific layouts based on their account names/types. (We're on v19.x in FileMaker Pro and Server.) Cheers, Rich Edited December 6, 20214 yr by WF7A Added bracket
December 6, 20214 yr That's what I use on one of my files. Make sure it's part of the file options OnFirstWindowOpen to run that script.
December 8, 20214 yr Author Well, it sort of works now: When I access the db--using WebDirect--with an iPad, for some reason it doesn't recognize Get ( SystemPlatform ) =3 (iOS / iPad); the script recognizes 1 (Mac), -2 (Windows), and 4 (WebDirect), so is there a tweak I need to know?
December 9, 20214 yr Perhaps you need https://help.claris.com/en/pro-help/content/get-systemversion.html?Highlight=System
December 9, 20214 yr Author Thanks. That helped a little, but I found what would work, though: Get(Device) https://fmhelp.filemaker.com/help/15/fmp/en/index.html#page/FMP_Help/get-device.html So, with a little mixing and matching I got it to work. (Persistence does pay off!) Edited December 9, 20214 yr by WF7A
Create an account or sign in to comment