Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

This topic is 1148 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted (edited)

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 by WF7A
Added bracket
Posted

That's what I use on one of my files.

Screen Shot 2021-12-06 at 2.23.05 PM.png

 

Make sure it's part of the file options OnFirstWindowOpen to run that script. 

Posted

Thanks! I'll give it a shot tomorrow.

Posted

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?

This topic is 1148 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.