Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » can't get results of stored procedure for my dataset
can't get results of stored procedure for my dataset [message #1106170] Tue, 10 September 2013 19:58 Go to next message
Gibran Shah is currently offline Gibran ShahFriend
Messages: 33
Registered: September 2013
Member
Hello,

I'm new here and new to both BIRT and Eclipse.

I have a stored procedure that looks like this:

create or replace
procedure GET_TAX_TYPE_BY_TAX_ENTITY_KEY (
TaxEntityKey in number,
results out SYS_REFCURSOR) as

begin

open results for
select *
from MyDB.TAX_SLIPS
where TAX_ENTITY_KEY = TaxEntityKey;

end

Now I want to use the results of this stored procedure to populate a report. So in creating my DataSet, I get to the point where I find my stored procedure in the Available Items window, but I'm not sure what to type for my query.

I tried the following:

variable results REFCURSOR;
{call MyDB.GET_TAX_TYPE_BY_TAX_ENTITY_KEY(123, results)}

(some of this data is faked for security reasons)

but I get an error saying:

"Cannot get the result set metadata.org.eclipse.birt.report.data.oda.jdbc.JDBCException: SQL statement does not return a ResultSet Object.
SQL error #1:ORA-00900: invalid SQL statement..."

According to the error message, I'm not returning a ResultSet. But this is how everything on the net tells me to do it.

What am I doing wrong?
Re: can't get results of stored procedure for my dataset [message #1106591 is a reply to message #1106170] Wed, 11 September 2013 09:42 Go to previous messageGo to next message
Rahul KumarFriend
Messages: 8
Registered: December 2012
Junior Member
Have you tried select query on your function name(GET_TAX_TYPE_BY_TAX_ENTITY_KEY).It should give you the result set if your function is returning the resultset correctly.
Re: can't get results of stored procedure for my dataset [message #1106797 is a reply to message #1106170] Wed, 11 September 2013 15:04 Go to previous message
Gibran Shah is currently offline Gibran ShahFriend
Messages: 33
Registered: September 2013
Member
I tried that. It didn't work. Besides, GET_TAX_TYPE_BY_TAX_ENTITY_KEY isn't a function. It's a stored procedure.
Previous Topic:How can I get and set the actual row count of a dataset?
Next Topic:Announcing Ernie
Goto Forum:
  


Current Time: Thu Apr 25 20:44:03 GMT 2024

Powered by FUDForum. Page generated in 0.03267 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top