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 5777 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted (edited)

I created a script to either exit the application or take the user to the administration page depending on layout and privileges. But the script is not working well. This is the script:

If[(Get(PrivilegeSetName)="Admin") or (Get(PrivilegeSetName)="[Full Access]")]

 If[Get(LayoutName) ≠ "Family File (Admin)"]

  Go to Layout ["Family File (Admin)" (Preferences)]

  Exit Script[]

 Endif

Endif

Exit Application

The script is set to run in full access privileges.

When the user is neither Admin nor [Full Access] it evaluates the first if statement as true.

I could not find the error in the code. I checked everything in the data viewer and all was correct, but it still evaluates the first if as true.

Edited by Guest
Posted

The script is set to run in full access privileges.

That would do it. In the context of a script, the Get(PrivilegeSetName) function returns the script's privileges, not the user's.

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