3 Replies Latest reply on Feb 28, 2017 7:10 AM by philmodjunk

    user layout tracking link




      I have a requirement where I need to provide a nested link of layouts that the user came from.

      Say I have 5 layouts -> Home, A, B, C, D and E,


      when the user goes from Home to A, then from A to B, B to D and D to E

      then in layout E, I need to provide the user with links to all the pre visited layouts, so that the user can navigate to any of these layouts from layout E.


      in Layout A ===   << Home

      in Layout B ===   << Home << A

      in Layout D ===   << Home << A << B

      in Layout E ===   << Home << A << B << D.


      Also when they click on D and goes to layout B, they should not see the links to D or E.

      Hope I have made it clear enough.


      Something similar to the below image.

      What would be the best possible approach to achieve this.


      Any suggestions?


      Thanks in advance

        • 1. Re: user layout tracking link

          The main consideration that you need to track this for each user session so globals may play a significant role int he solution. In the case their are multiple simultaneous users providing breadcrumb navigation can be difficult. This might give you some ideas.


          • 2. Re: user layout tracking link

            As long as you store this "stack" of previously visited layout names in a global variable, you should be able to do it. Script triggers can "push" a new layout name onto the stack. A text field can display this list horizontally and a script performed by OnObjectEnter can use the cursor position with a looping script to parse the layout name from the list.


            So I'd use a global variable to store each layout name as a return separated list. That makes updating it and "pruning" layout names off the list because the user clicked the global "nav" field easy to do. The list of visited fields can be displayed in an unstored calculation field that uses substitute to replace the returns with your <--- text.


            To start, I suggest searching this forum for posts about "back button" topics to find resources on how to build and update that list of layout names in a variable. Then take a wack at adding the unstored calculation field with script trigger to produce the interface that you want.

            • 3. Re: user layout tracking link

              Oh Yes, this script trigger and parse method works in FileMaker Pro but not in FileMaker Go.