2 Replies Latest reply on Oct 10, 2006 1:50 PM by rigisich

    Defining functions in DW8 ASP

      I am trying to call a function upon a change to a field in my form and I am not having any luck. I have been writing javascripts to update fields successfuly but in this case, I need to read a database to get a item on-hand balance and then display it in the form. I don't know how to do a database read in java so I thought I would write a standard function.

      So, in the item selection field on my form, I have onchange "get_bal(beg_bal,end_bal)". when a user selects an item, I want it to go out, read the database for that item and update the form with the current balance. I get an error when I call the function, regardless of what command I ahve. What am I doing wrong? Is this the wrong approach? Code attached. Thanks in advance.