4 Replies Latest reply on Sep 9, 2009 8:56 AM by thong127

    script not working

    thong127

      Title

      script not working

      Post

      Hi to everybody,

       

      I have a field Reorder_Level, with a calculation (.5 * Stock Received). now I made a script

       

       

      Set Error Capture [On]

      Enter Find Mode []

      Set Field [Stock::Reorder_Level; "<=.5"]

      Perform Find []

      if [Get(FoundCount) = 0]

      Show All records

      Exit Script []

      End If

      Go to Record/Request/Page[First]

      Loop

      Set variable [$names & Stock:: Stock Name & "¶"

      Go to Record/Request[Next; Exit after last]

      End Loop

      Show Custom Dialog ["Stocks Under 5% Level", "Stocks Need Attention: ¶" & $names"]

      Go to Layout ["Stock_List_View"]

       

      Now, my problem is when I run the script it doesnt show me all the stocks having 5% level based from the stock received.

      Is there a wrong with my script?or to my calculation?

       

      Thank you very much to any help that you can extend.

       

      thong