Jump to content

Login account determines start layout


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

Recommended Posts

  • Newbies

I would like to use a script on file open that uses the account to determine the starting layout. I want guests to get one layout, users to get another and admins to get a third. I tried get(accountname), but it returned the account name for my machine rather than the account name used to log in.

Link to comment
Share on other sites

Get(accountName) returns exactly the account name used to login to the database. In any case, it probably won't help you, what you might try instead is: Get(privilegeSetName)

Link to comment
Share on other sites

no no no.. you said that you wanted to go to a specific layout if your user had admin priveleges, a different one, if they had other priveleges etc. etc.

So, you would use:

If[Get(PrievelegeSetName) = "Administrator]

Go To Layout[Your Layout For Admin Users]

Else If[Get(PrivelegeSetName) = "Managers"]

Go To Layout[Your Layout For Managers]

Else If[etc etc]

.

.

.

.

.

End If

Or.. by account name

If[Get(AccountName) = "Bob" ]

Go To Layout[Layout For Bob]

Else IF[Get(AccountName) = "Jen" ]

Go To Layout[Layout For Jen]

.

.

.

.

End If

Link to comment
Share on other sites

This topic is 5591 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
 Share

×
×
  • Create New...

Important Information

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