1 Reply Latest reply on Jun 28, 2016 3:29 PM by TSPigeon

    Cut and Paste - to beginning of text block?


      Hi - I have a simple script that moves copy from one edit text field to another (current updates, vs old logged updates). Currently the script dumps the copy at the end of the old copy. BUT, I like to keep my log of updates with the most recent on the top, meaning I need the script to paste the copy before the first character already in the field. Doable? If so, HOW?


      Thank you so much!!

        • 1. Re: Cut and Paste - to beginning of text block?



          Thank you for your post!


          You might use a SetVariable then SetField instead? A couple possible scripts:


          If fields are part of the same table/related:

          Set Variable [ $log ; TableA::FieldOne & ¶ & TableB::FieldTwo ]

          Set Field [ TableA::FieldTwo ; $log ]


          If fields are different tables and not related:

          GoToLayout [ TableA_Layout ]

          Set Variable [ $log ; TableA::FieldOne ]

          GoToLayout [ TableB_Layout ]

          Set Variable [ $log & ¶ & TableB::FieldTwo ]

          Set Field [ TableA::FieldTwo ; $log ]


          There may very well be better ways to do this though, which is why I am going to move this thread from the FileMaker Community Feedback Space, which is specifically for input on the Community itself, to the Discussions Space where you should receive more views and potentially more advice!



          FileMaker, Inc.

          1 of 1 people found this helpful