2 Replies Latest reply on Mar 27, 2013 8:41 AM by KenMaitland

    Drop down feilds to switch between layouts

    KenMaitland

      Title

      Drop down feilds to switch between layouts

      Post

           I have created custom layouts for my team for reporting purposes. I have created a drop down field with and value list with thier names in it. Can i set this up so that i can choose a persons name, then click on a button i set up to navigate to thier custom layout?

        • 1. Re: Drop down feilds to switch between layouts
          philmodjunk

               You can set up a script to be performed by the OnObjectSave trigger on your drop down list field.

               Option 1:

               Go to Layout [YourTable::YourDropDownField ]

               This uses the "Layout name by calculation option" and requires that the names in your drop down exactly match the names of your layouts.

               Option 2:

               If [YourTable::YourDropDownField = "Fred" ]
                  Go to Layout [//specify layout for Fred here]
               Else IF [YourTable::YourDropDownField = "John" ]
                  Go to Layout [//specify layout for John here]

               And so forth...

               the second option uses a more complex script but does not require that the layout names exactly match values in your value list. It also would permit you to send more than one user to the same layout.

          • 2. Re: Drop down feilds to switch between layouts
            KenMaitland

                 Your first option did the trick. This worked perfectly for what i needed. Thank you very much!