Hi all,
I am new to DataVision and have been banging my head against the wall with
this "problem" for too long, so I'm asking the list.
I am going totally nuts trying to set my report parameters with my java
code and I still get this output:
DataVision v0.9.2
select DB.DATAVISION.FIRST_NAME, DB.DATAVISION.LAST_NAME,
DB.DATAVISION.AGE from DB.DATAVISION where (first_name like
{?wo_nameLike})
java.sql.SQLException
...
Shouldn't the code below work:
report.setLayoutEngine(new HTMLLE(new PrintWriter(out)));
report.parametersSetManually(true);
Parameter p = report.findParameterByName("wo_nameLike");
p.setValue(o, "Lucas");
report.run();
conn.close();
I have looked at the mailing list and came across Jim's note about
creating a subclass of Report and overriding askForParameters(), but is
that really necessary?
My reports run fine if I don't have any parameters in them.
Thanks!
-lucas
|