2 Replies Latest reply on Sep 11, 2012 12:52 PM by philmodjunk

    Copy field contents script

    ultranix

      Title

      Copy field contents script

      Post


           It may sound little awkward to even read this, but I set up a simple script, which would select and then copy entire contents of the particular field:

           Go to field [select/perform; FIELDNAME]

           Copy

            

           But this script limits me to being forced to set up such a script for every field that i want to be able to copy in one click. Is there a way to have that "go to field" thing dynamic?

           I tried this one:

           Go to Object [Object Name: Get(ActiveLayoutObjectName)] and [Object Name: Get(ActiveFieldContents]

           Copy

           But then it would copy all the text in the layout, because it doesn't eventually enter that field.

           Suggestions?

            

        • 1. Re: Copy field contents script
          Sorbsbuster

               What happens if you simply don't specify any field in the script step?  FM will probably take the field that is currently active.

          • 2. Re: Copy field contents script
            philmodjunk

                 Why do you need to copy the data to the clipboard? There can be good reason for that, but there are also many "not good" reasons for it as well...

                 You might "generalize" such a copy action by:

                 Go to Object
                 Set Field [Globals::GlobalText field ; Get ( ActiveFieldContents) ]
                 Copy [Globals::GlobalTextField ]

                 This way you are always copying from the same field, but only after using the set field step to load this one field with the data from any number of other fields that may need to be copied.