<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.0.2" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: How to call Stored Procedures from JasperReports</title>
	<link>http://www.brianburridge.com/2006/06/04/how-to-call-stored-procedures-from-jasper-reports/</link>
	<description>Brian Burridge shares his thoughts and opinions on Internet Software Architecture and Development, chronicles his current projects and areas of research, and give tips and tricks he discovers along the way.</description>
	<pubDate>Thu, 21 Aug 2008 18:28:33 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.2</generator>

	<item>
		<title>by: abhinav</title>
		<link>http://www.brianburridge.com/2006/06/04/how-to-call-stored-procedures-from-jasper-reports/#comment-13959</link>
		<pubDate>Thu, 31 Jul 2008 04:11:44 +0000</pubDate>
		<guid>http://www.brianburridge.com/2006/06/04/how-to-call-stored-procedures-from-jasper-reports/#comment-13959</guid>
					<description>hi all,
       how we pass a collection object in function
.</description>
		<content:encoded><![CDATA[<p>hi all,<br />
       how we pass a collection object in function<br />
.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Dipankar Das</title>
		<link>http://www.brianburridge.com/2006/06/04/how-to-call-stored-procedures-from-jasper-reports/#comment-12895</link>
		<pubDate>Sat, 28 Jun 2008 10:51:20 +0000</pubDate>
		<guid>http://www.brianburridge.com/2006/06/04/how-to-call-stored-procedures-from-jasper-reports/#comment-12895</guid>
					<description>Hi, Your code is really helpful for the beginners for Jasper report like me. But I need a help from you . I want to know how I can pass a parameters into the sql query.

My query is : 
select * from table(partha_TYPE('01/01/2007','01/01/2009')) - was running fine

But I had created two parameters and change the query as 
select * from table(partha_TYPE($P{StartDate},$P{EndDate}))
. 
After I have executed the report it gives me the error as follows &quot;java.sql.SQLException: ORA-22905: cannot access rows from a non-nested table item &quot;. Can you please help me to solve this?

Thanks in advance.</description>
		<content:encoded><![CDATA[<p>Hi, Your code is really helpful for the beginners for Jasper report like me. But I need a help from you . I want to know how I can pass a parameters into the sql query.</p>
<p>My query is :<br />
select * from table(partha_TYPE(&#8217;01/01/2007&#8242;,&#8217;01/01/2009&#8242;)) - was running fine</p>
<p>But I had created two parameters and change the query as<br />
select * from table(partha_TYPE($P{StartDate},$P{EndDate}))<br />
.<br />
After I have executed the report it gives me the error as follows &#8220;java.sql.SQLException: ORA-22905: cannot access rows from a non-nested table item &#8220;. Can you please help me to solve this?</p>
<p>Thanks in advance.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Brian Burridge</title>
		<link>http://www.brianburridge.com/2006/06/04/how-to-call-stored-procedures-from-jasper-reports/#comment-10623</link>
		<pubDate>Sat, 29 Mar 2008 18:08:51 +0000</pubDate>
		<guid>http://www.brianburridge.com/2006/06/04/how-to-call-stored-procedures-from-jasper-reports/#comment-10623</guid>
					<description>René B,

It's nice to see that iReport has added that functionality. Would have been nice to have that two years ago when I needed it!</description>
		<content:encoded><![CDATA[<p>René B,</p>
<p>It&#8217;s nice to see that iReport has added that functionality. Would have been nice to have that two years ago when I needed it!
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: René B.</title>
		<link>http://www.brianburridge.com/2006/06/04/how-to-call-stored-procedures-from-jasper-reports/#comment-10608</link>
		<pubDate>Thu, 27 Mar 2008 23:39:22 +0000</pubDate>
		<guid>http://www.brianburridge.com/2006/06/04/how-to-call-stored-procedures-from-jasper-reports/#comment-10608</guid>
					<description>renebpr@gmail.com</description>
		<content:encoded><![CDATA[<p><a href="mailto:renebpr@gmail.com">renebpr@gmail.com</a>
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: René B.</title>
		<link>http://www.brianburridge.com/2006/06/04/how-to-call-stored-procedures-from-jasper-reports/#comment-10607</link>
		<pubDate>Thu, 27 Mar 2008 23:35:41 +0000</pubDate>
		<guid>http://www.brianburridge.com/2006/06/04/how-to-call-stored-procedures-from-jasper-reports/#comment-10607</guid>
					<description>OK... all right but and this....

http://www.jasperforge.org/sf/projects/oraclestoredprocedures#news

What do you have to say?

Agreed previous link, is possible to call oracle stored procedures from iReport of JasperSoft. How is possible that?

email me!!!</description>
		<content:encoded><![CDATA[<p>OK&#8230; all right but and this&#8230;.</p>
<p><a href='http://www.jasperforge.org/sf/projects/oraclestoredprocedures#news' rel='nofollow'>http://www.jasperforge.org/sf/projects/oraclestoredprocedures#news</a></p>
<p>What do you have to say?</p>
<p>Agreed previous link, is possible to call oracle stored procedures from iReport of JasperSoft. How is possible that?</p>
<p>email me!!!
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: tom Gaderer</title>
		<link>http://www.brianburridge.com/2006/06/04/how-to-call-stored-procedures-from-jasper-reports/#comment-8696</link>
		<pubDate>Wed, 02 Jan 2008 18:31:23 +0000</pubDate>
		<guid>http://www.brianburridge.com/2006/06/04/how-to-call-stored-procedures-from-jasper-reports/#comment-8696</guid>
					<description>Hi Brian, I have done all steps you decribed, and the stored function works corretly in sql. but in jasper-report I get the following error-message:

Fehler beim Füllen... Error executing SQL statement for : bauspora
net.sf.jasperreports.engine.JRException: Error executing SQL statement for : bauspora      at net.sf.jasperreports.engine.query.JRJdbcQueryExecuter.createDatasource(JRJdbcQueryExecuter.java:141)      at net.sf.jasperreports.engine.fill.JRFillDataset.createQueryDatasource(JRFillDataset.java:682)      at net.sf.jasperreports.engine.fill.JRFillDataset.initDatasource(JRFillDataset.java:614)      at net.sf.jasperreports.engine.fill.JRBaseFiller.setParameters(JRBaseFiller.java:1198)      at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:842)      at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:795)      at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:63)      at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:402)      at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:234)      at it.businesslogic.ireport.IReportCompiler.run(IReportCompiler.java:943)      at java.lang.Thread.run(Thread.java:595)  Caused by: java.sql.SQLException: ORA-00906: missing left parenthesis       at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)      at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:289)      at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:582)      at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1986)      at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:1144)      at oracle.jdbc.driver.OracleStatement.executeNonQuery(OracleStatement.java:2152)      at oracle.jdbc.driver.OracleStatement.doExecuteOther(OracleStatement.java:2035)      at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2876)      at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:609)      at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:537)      at net.sf.jasperreports.engine.query.JRJdbcQueryExecuter.createDatasource(JRJdbcQueryExecuter.java:135)      ... 10 more  
Report wurde nicht gefüllt. Versuchen Sie es mit einer leeren Datenquelle...

and this is my query: 
select ans_1                      
,ans_2                     
,ans_3                     
,ans_4                     
,ans_5                     
,ans_6                     
from table(bsp_FUNC)

I hope anyone can help me
Thanks
TOM</description>
		<content:encoded><![CDATA[<p>Hi Brian, I have done all steps you decribed, and the stored function works corretly in sql. but in jasper-report I get the following error-message:</p>
<p>Fehler beim Füllen&#8230; Error executing SQL statement for : bauspora<br />
net.sf.jasperreports.engine.JRException: Error executing SQL statement for : bauspora      at net.sf.jasperreports.engine.query.JRJdbcQueryExecuter.createDatasource(JRJdbcQueryExecuter.java:141)      at net.sf.jasperreports.engine.fill.JRFillDataset.createQueryDatasource(JRFillDataset.java:682)      at net.sf.jasperreports.engine.fill.JRFillDataset.initDatasource(JRFillDataset.java:614)      at net.sf.jasperreports.engine.fill.JRBaseFiller.setParameters(JRBaseFiller.java:1198)      at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:842)      at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:795)      at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:63)      at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:402)      at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:234)      at it.businesslogic.ireport.IReportCompiler.run(IReportCompiler.java:943)      at java.lang.Thread.run(Thread.java:595)  Caused by: java.sql.SQLException: ORA-00906: missing left parenthesis       at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)      at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:289)      at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:582)      at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1986)      at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:1144)      at oracle.jdbc.driver.OracleStatement.executeNonQuery(OracleStatement.java:2152)      at oracle.jdbc.driver.OracleStatement.doExecuteOther(OracleStatement.java:2035)      at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2876)      at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:609)      at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:537)      at net.sf.jasperreports.engine.query.JRJdbcQueryExecuter.createDatasource(JRJdbcQueryExecuter.java:135)      &#8230; 10 more <br />
Report wurde nicht gefüllt. Versuchen Sie es mit einer leeren Datenquelle&#8230;</p>
<p>and this is my query:<br />
select ans_1<br />
,ans_2<br />
,ans_3<br />
,ans_4<br />
,ans_5<br />
,ans_6<br />
from table(bsp_FUNC)</p>
<p>I hope anyone can help me<br />
Thanks<br />
TOM
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Annie He</title>
		<link>http://www.brianburridge.com/2006/06/04/how-to-call-stored-procedures-from-jasper-reports/#comment-8269</link>
		<pubDate>Tue, 27 Nov 2007 16:30:32 +0000</pubDate>
		<guid>http://www.brianburridge.com/2006/06/04/how-to-call-stored-procedures-from-jasper-reports/#comment-8269</guid>
					<description>Hi,

I got all the codes in Oracle.  May I have all the codes work in Sybase?


Thanks,

Annie</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I got all the codes in Oracle.  May I have all the codes work in Sybase?</p>
<p>Thanks,</p>
<p>Annie
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Annie He</title>
		<link>http://www.brianburridge.com/2006/06/04/how-to-call-stored-procedures-from-jasper-reports/#comment-8239</link>
		<pubDate>Mon, 26 Nov 2007 22:36:04 +0000</pubDate>
		<guid>http://www.brianburridge.com/2006/06/04/how-to-call-stored-procedures-from-jasper-reports/#comment-8239</guid>
					<description>Hi,

Your codes for oracle are very helpful and clear about how to create and call stored procedure.  Is this just for the oracle database?  What are the syntax differences in the code between Sybse and oracle?  If there are some differences, would you please give me all the information in Sybase?

Thanks,

Annie</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Your codes for oracle are very helpful and clear about how to create and call stored procedure.  Is this just for the oracle database?  What are the syntax differences in the code between Sybse and oracle?  If there are some differences, would you please give me all the information in Sybase?</p>
<p>Thanks,</p>
<p>Annie
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Oracle Guy</title>
		<link>http://www.brianburridge.com/2006/06/04/how-to-call-stored-procedures-from-jasper-reports/#comment-7229</link>
		<pubDate>Sun, 30 Sep 2007 23:05:22 +0000</pubDate>
		<guid>http://www.brianburridge.com/2006/06/04/how-to-call-stored-procedures-from-jasper-reports/#comment-7229</guid>
					<description>Use of autonomous transaction, global temporary table and refcursor unnecessary in this example.

CREATE OR REPLACE FUNCTION “PRESIDENTS_FUNC” (
partyParam CHAR
)
return PRESIDENT_TYPE_TABLE pipelined
is
out_rec PRESIDENT_TYPE := PRESIDENT_TYPE(0, null, null, null);

FOR out_rec IN (
SELECT ID, NAME, BIRTHDATE, PARTY FROM PRESIDENTS WHERE PARTY = partyParam)
LOOP
   out_rec.ID,
   out_rec.NAME,
   out_rec.BIRTHDATE,
   out_rec.PARTY;
   PIPE ROW(out_rec);
END LOOP;
RETURN;
END;</description>
		<content:encoded><![CDATA[<p>Use of autonomous transaction, global temporary table and refcursor unnecessary in this example.</p>
<p>CREATE OR REPLACE FUNCTION “PRESIDENTS_FUNC” (<br />
partyParam CHAR<br />
)<br />
return PRESIDENT_TYPE_TABLE pipelined<br />
is<br />
out_rec PRESIDENT_TYPE := PRESIDENT_TYPE(0, null, null, null);</p>
<p>FOR out_rec IN (<br />
SELECT ID, NAME, BIRTHDATE, PARTY FROM PRESIDENTS WHERE PARTY = partyParam)<br />
LOOP<br />
   out_rec.ID,<br />
   out_rec.NAME,<br />
   out_rec.BIRTHDATE,<br />
   out_rec.PARTY;<br />
   PIPE ROW(out_rec);<br />
END LOOP;<br />
RETURN;<br />
END;
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Leda Novatzki</title>
		<link>http://www.brianburridge.com/2006/06/04/how-to-call-stored-procedures-from-jasper-reports/#comment-5651</link>
		<pubDate>Fri, 25 May 2007 19:30:03 +0000</pubDate>
		<guid>http://www.brianburridge.com/2006/06/04/how-to-call-stored-procedures-from-jasper-reports/#comment-5651</guid>
					<description>Brian,

I tested the method and it works fine and I used parameters in function. So, I need use now a subreport with result my function and my subreport use stored procedure too. How can I do this?

My function:
select col1, col2, col3 from table(my_func($P{param1}, $P{param2})).

My subreport:
select * from table_subreport(my_func2($P!{col1))

Where:
col1 : field Result from my first select

Thanks</description>
		<content:encoded><![CDATA[<p>Brian,</p>
<p>I tested the method and it works fine and I used parameters in function. So, I need use now a subreport with result my function and my subreport use stored procedure too. How can I do this?</p>
<p>My function:<br />
select col1, col2, col3 from table(my_func($P{param1}, $P{param2})).</p>
<p>My subreport:<br />
select * from table_subreport(my_func2($P!{col1))</p>
<p>Where:<br />
col1 : field Result from my first select</p>
<p>Thanks
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
