4 Replies Latest reply on Mar 27, 2009 10:33 AM by dekade1

    Return To Layout Script

    dekade1

      Title

      Return To Layout Script

      Post

      I am writing a script to return to a layout. Here's what I need to do.

       

      1 - I am entering data on Layout A

      2 - I now will click a button to start Script 1 ... (this step I can do)

      3 - I want Script 1 to first remember that I am currently on Layout A ... (this step I am having trouble with)

      4 - Then I want the Script 1 steps to go to Layout B so that I can do some data entry Layout B ... (this step I can do)

      5 - After I am done with the data entry I want to press another button to start Script 2 ... (this step I can do)

      6 - Script 2 will take me back to original Layout A ... (this step I am having trouble with)

       

      Any help would be greatly appreciated

        • 1. Re: Return To Layout Script
          KingsPawn
            

          First off take this with a grain of salt because I am a self-taught newbie.

           

          If I were doing this I would set a global variable in script 1:

           

          Set variable[$$ReturnValue;value:1]

           

          Then in script 2 I would create a step:

           

          If [$$ReturnValue = 1]

                      Go to Layout[select from specify drop down list]

          Else If [$$ReturnValue = 2]

                      Go to Layout[some other layout]

          End If

           

           

          KingsPawn:smileyvery-happy:

          • 2. Re: Return To Layout Script
            raybaudi
              

            Hi decade

             

            what prevents you to make those scripts like these:

             

            First script:
            Go to Layout [ B ]

             

            Second script:
            Go to Layout [ A ]

             

            BTW: if you have more than a layout to go, but always come back to A, you can try:

             

            Go to Layout [ B ]
            Pause/Resume Script [ Indefinitely ]
            Go to Layout [ original layout ]

             

            and, on the layout B place a button that has the lone step ( not a script ) : Resume Script

            • 3. Re: Return To Layout Script
              dekade1
                

              I think I see what you are doing here but at the same time it is foggy. Can you break it down further by an actual example?

               

              I appreciate your input.

               

              Dekade

              • 4. Re: Return To Layout Script
                dekade1
                   When there are 50 different layouts a person cannot remember the names of all of them. That is why a person would want to go back to the one they just came from.