java - JasperReports's scriptlet "beforeReportInit()" , what does it do? -



java - JasperReports's scriptlet "beforeReportInit()" , what does it do? -

i using jasperreports scriptlet --> beforereportinit() , want phone call stored procedure in oracle database temporary table populated info can use fill report.

in other words i'm trying accomplish oracle reports after parameter form trigger actions. how can or missing here?

/* before study initialized */ public void beforereportinit() throws jrscriptletexception { // gathering study connection connection conn = (connection) .getparametervalue("report_connection"); // calling stored procedure execution method. boolean status = executestoredprocedures(conn, this.getparametervalue("p_nic").tostring(), integer.valueof(this.getparametervalue("p_type").tostring())); // if fails if (!status) { // setting error on variable display on study this.setvariablevalue("error_log", "pre-report trigger failure"); } }

java stored-procedures jasper-reports scriptlet

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -