1 Reply Latest reply on Mar 5, 2012 12:45 PM by philmodjunk

    Redirect User to specific Layout

    ShaikhAtta1238

      Title

      Redirect User to specific Layout

      Post

      Hi, 

          I have about 3 types of users with different groupt. 

      Lets Say

       

      UserA         

      UserB

      UserC

       

      and layout :   Layout1               Layout2           Layout3

       

      Now when the database opens how can I redirect UserA to Layout1, UserB to Layout2 and UserC to Layout3

        • 1. Re: Redirect User to specific Layout
          philmodjunk

          How can you identify to which group a user belongs?

          One method is to assign all users from a specific group to the same privilege set, then you can set a script to run when the file is opened that checks user privilege set names and goes to the layout that is appropriate:

          If [ Get ( AccountPrivilegeSetName ) = "UserAPrivilegeSet" ]
             Go to Layout [//specify layout for UserA group]
          Else If [ Get ( AccountPrivilegeSetName ) = "UserBPrivilegeSet" ]
             Go to layout [//specify layout for UserB group]
          Else
             Go to Layout [//specify layout for UserC group]
          End IF

          Another approach would be to use this Case function inside a Go to Layout step with the "layout name by calculation option specified":

          Case ( Get ( AccountPrivilegeSetName ) = "UserAPrivilegeSet" ; "LayouNameForUserAGroupHere" ;
                     Get ( AccountPrivilegeSetName ) = "UserBPrivilegeSet"  ; "LayouNameForUserBGroupHere" ;
                     "LayouNameForUserCGroupHere" );

          This second option will fail, however, if you later decide to change the layout name and fail to update this script step to use the new layout name. The first script, however, will still work without modification even when you rename a layout.