13 Replies Latest reply on Nov 16, 2016 8:12 PM by philmodjunk

    PSOS vs client script return different result




      Recently I encounter this problem, I do simple find with script step to do a calculation, using Get(Foundcount) at the end of the script so that Exit script will pass me the result to store in another table field.



      Parameter: "Product" & ¶ & "Location" & ¶ & "14/11/2016"

      My Script: 


      Set Error Capture [On]


      set variable [$PARA;Get(ScriptParameter)]

      set variable [$product;Getvalue($PARA;1)]

      set variable [$location;Getvalue($PARA;2)]

      set variable [$date;Getvalue($PARA;3)]


      Go To Layout [Layout]

      Enter Find Mode[]

      Set Field[Date;$data]

      Set Field[Location;$location]

      Set Field[Product;$product]

      Perform Find []

      set varaible[$Found; Get(FoundCount)]

      Exit Script [Result:$Found]


      Runing on schedule and PSOS will give me a different result, while I run this script directly using perform script.