February 15, 200917 yr How can i assign a specific layout to a specific user, so that when he logs in, he views a layout different from what the other users see.
February 16, 200916 yr The Get( AccountName ) function will do this for you. Set up a script that has the following steps: If [ Get( AccountName ) = "person1" ] Go to Layout [ "Layout for person 1" ] Else If [ Get( AccountName ) = "person2" ] Go to Layout [ "Layout for person 2" ] Else If [ Get( AccountName ) = "person3" ] Go to Layout [ "Layout for person 3" ] Else Go to Layout [ "Layout for unknown person" ] End If ... where "personX" is the account name of each person. Obviously this solution requires each person's name to be hard coded into the script, which is generally a maintenance overhead because it'll have to be modified each time a new account is added. However that's the way to do it for individual users. If, however, you wanted people to see layouts based on their *roles* then I'd suggest setting up a privilege set for each role, and assigning each person to one of the privilege sets. Then the script will be: If [ Get( PrivilegeSetName ) = "role1" ] Go to Layout [ "Layout for role 1" ] Else If [ Get( PrivilegeSetName ) = "role2" ] Go to Layout [ "Layout for role 2" ] Else If [ Get( PrivilegeSetName ) = "role3" ] Go to Layout [ "Layout for role 3" ] Else Go to Layout [ "Layout for unknown role" ] End If This is much lower maintenance because it's much less likely that new roles will be added very frequently. Adding new users is just a matter of assigning them to an existing privilege set and it'll all just work.
Create an account or sign in to comment