Jump to content

Can't get Get(SystemPlatform) to work when accessing db by WebDirect


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

Recommended Posts

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
Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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 by WF7A
Link to comment
Share on other sites

This topic is 840 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.