1 Reply Latest reply on May 23, 2013 5:14 AM by ninja

    Learning to use scripts



      Learning to use scripts


           Hi, I'm new to this. I'm trying to create a button on a layout that will go to a a different layout and insert the contents of a field in the layout I've just left into a field of the same name in the new layout. (The layouts are based on different tables (client and patient, in a veterinary context) and the field (client_ID) will allow records to be related. Basically it functions the same way it would if you entered data into the second table from a portal in the first layout). I have no problems getting the script to navigate to the second layout and enter browse mode but can't get my head around the how to get the "insert from last visited" script step to function for this purpose.

           Thanks for any halp.


        • 1. Re: Learning to use scripts


               SetVariable ($clientID ; Value: client_ID)

               GoToLayout ( Patient)

               New REcord/Request

               SetField (Client_ID ; $clientID)


               Sort of like a copy and paste, but using the variable avoids the use of the computer clipboard.