2 Replies Latest reply on Feb 10, 2010 8:45 AM by joeu

    Help with script to use field data in find mode

    joeu

      Title

      Help with script to use field data in find mode

      Post

      I want to use data in field 1(see_also)  to find data in field 2 (subject)

      I want a script to copy data in field 1

      Use the data in a find process

      And have the user at the found record

       

      Script so far ........

       

      set variable [$SearchSeeAlso ; value ; table :: see_also ]

      enter find mode[]

      set field [table::Subject ; $SearchSeeAlso]

      perform find[]

       

      ------

       

      So far this script produces nothing

        • 1. Re: Help with script to use field data in find mode
          ninja
            

          Howdy joeu,

           

          The script looks fine...

           

          If you do the same thing manually, on the same record, do you get a different result?

           

          Go to your see_also field, copy the contents, enter find mode, paste the contents into your subject field and hit enter...is there anything to find?

           

          Mock up records that you know will find something and try your script.  Does it give the correct results then?

          • 2. Re: Help with script to use field data in find mode
            joeu
              

            The script finally worked.  I'm not sure what I did!!  I really don't know what I'm doing and I think I put stuff in the calculations that don't belong there but it looks OK.  Anyway, I redid it several times and finally got it to work.

            Thanks for your efforts. Sorry for the trouble.