2 Replies Latest reply on Dec 18, 2013 11:13 AM by bmagargal

    "Perform Find" Script Returns Error 5

    bmagargal

      Title

      "Perform Find" Script Returns Error 5

      Post

           I have used this function in numerous applications, but for some reason I continue getting error 5 when I run the following script:

      SCRIPT

      Go to Layout [ “Class Information (Edit)” (Class Details) ]

      Set Error Capture [ On ]

      Enter Find Mode [ ]

      Set Field [ Class Details::Status; GetAsText ( $$status.find ) ]

      Set Field [ Class Details::Prev Sched Start Date; $$date.find ]

      Perform Find/Replace [ ]

      [ No dialog ]

      Set Variable [ $error; Value:Get ( LastError ) ]

      If [ not Get ( FoundCount ) ]

          Perform Script [ “Find All Classes” ]

          Set Field [ Class Details::Classes Selection Header; "No Classes Met Criteria" ]

      End If

      Go to Layout [ original layout ]

      Enter Browse Mode

            

      VARIABLES are set as follows

           $$status.find     *

           $$date.find      < 12/31/2013

           $error                5

            

            

      Screen_Shot_2013-12-18_at_12.49.03_PM.png