August 15, 200718 yr 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
August 15, 200718 yr 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.
August 15, 200718 yr Author 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 August 15, 200718 yr by Guest
August 15, 200718 yr 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.
August 16, 200718 yr Author 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
August 17, 200718 yr You must have changed your privilege set name? When I do Get(PrivilegeSetName) I see "[Read-only Access]". Maybe you want Get(AccountName) instead?
Create an account or sign in to comment