Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

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

Recommended Posts

Posted

I am trying to do the following to direct the user to an appropriate layout.

If [Get ( PrivilegeSetName ) = "Guest"]

Go to layout ["ONE"]

Else

Go to layout ["TWO"]

End If

It is not grabbing the privilege set name however. It is just blowing down to the else statement. Any suggestions?

thanks,

mike

Posted

If you're using Advanced you can use the Data Viewer to see what that is actually evaluating to. If not, you can create a global calc that does the same thing.

Make sure that you're logged into the right account to test privelage sets.

Posted (edited)

Thanks.

I am using advanced, and opened the data viewer. When I put in Get ( PrivilegeSetName) the Value returned is "Guest", which is the answer I was looking for. So, back to the if statement above? I am stumped, why is it not working?

is there a better way to do this?

Edited by Guest
Posted

Check to see if the script is set to run with full access privileges. If it is, the Get ( PrivilegeSetName ) function always returns "[Full Access]" because while the script is running, that's who is running it.

Also check whether the function should be Get ( PrivilegeSetName ) = "[Guest]" you are useing the built-in guest account.

Posted

I don't know what it was. I re-wrote it a couple of times, debugged, etc, and after about the 7th try it started to work. User error I'm sure, but not sure what I did different.

thanks for the help

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