6 Replies Latest reply on Jan 28, 2013 8:44 AM by philmodjunk

    Go to related record in list view help

    ericjlindholm

      Title

      Go to related record in list view help

      Post

           I need to go to a related record but bypass the sort script that is triggered when the layout is open.  OR perform a find in a list that navigates to to the found record but does not excluse the others.  (I realize thats not how a find works but dont know another way to describe what i need)  Thank you!

        • 1. Re: Go to related record in list view help
          philmodjunk

               Option 1.

               Duplicate your list view layout and remove the script trigger that sorts the record. Specify this layout in your Go To Related Records (GTRR)  Step

               Option 2.

               Have your script do this before the GTRR step:

               Set Variable [$$TriggersOff ; value: True]

               GTRR here

               Set Variable [$$triggersOff ; value: False ]

               Add in If Block to your sort records script:

               If [Not $$TriggersOff ]

               Existing script steps go here

               End If

               This second method allows you to disable script triggers as needed provided the trigger performed scripts include the If block I've specified.

          • 2. Re: Go to related record in list view help
            RickWhitelaw

                 Phil,

                 does FM actually understand "$$TriggersOff" ?

                 new one for me.

            • 3. Re: Go to related record in list view help
              ericjlindholm

                   Phil, Thanks.  this sounds like exactly what i need.  I am having a little trouble getting this one going.   Should this script be on the navigation button in the layout or the sort on the destingation that needs to be bypassed?  Thanks!

              • 4. Re: Go to related record in list view help
                Sorbsbuster

                     Have your Calling Script, the Go To Related Record script do this before the GTRR step:

                     Set Variable [$$TriggersOff ; value: True]

                     GTRR here

                     Set Variable [$$triggersOff ; value: False ]

                     -----------

                     Add in If Block to your sort records script:

                     If [Not $$TriggersOff ]

                     Existing script steps go here

                     End If

                • 5. Re: Go to related record in list view help
                  ericjlindholm

                       I cannot seem to get this working.  I have a attached a photo because I am at stumped.  Thank you again for your help.

                        

                  • 6. Re: Go to related record in list view help
                    philmodjunk

                         If the If and End if you show should not be in this script.

                         In your original post your refer to:

                         

                              the sort script that is triggered when the layout is open.

                         You need to add the If block to THAT script, not the script you have posted here.

                         @RickWhitelaw,

                         $$TriggersOff

                         Is just a global variable with a descriptive name. It has no special features different from any other global variable. It won't have any magic ability to disable script trigger performed scripts. Those trigger performed scripts have to include the If block that is specified to check for a value of True (the number 1) in this variable in order to exit the script without doing anything when this variable is used to "disable" script triggers.