Do you have the column name in quotes? Log out your fetch like:
importPackage( Packages.java.io );
out = new PrintWriter( new FileWriter( "c:/test/ds.txt", true ) );
out.println( "row value "+ row["ORDERNUMBER"]);
On 8/20/2012 9:26 AM, sam detewiler wrote:
> processed which is used as an input filter on another datasource.
> I want to further control the data put into the array, by using some
> but I don't understand how to get local variables in the onFetch script.
> var varname = "";
> varname ="";
> both produce errors.
> what I need to do is check the length of the data returned on one of the
> fetched rows.
> var xyz= row[data_element];
> if xyz.length()>0 array.push(xyz);
> but line one fails with error
> error evaluating script "var xyz=";