BIRT Exchange Forum: call stored procedure from birt report - BIRT Exchange Forum

Jump to content


 

No Latest Open Poll.

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

call stored procedure from birt report Rate Topic: -----

#1 User is offline   Aarika S S Icon

  • Newbie
  • Pip
  • Group: Members
  • Posts: 9
  • Joined: 09-January 12


Posted 23 January 2012 - 04:03 AM

Hi,

When I call a stored procedure from my birt report like ,
{call get_data_rpt(?,?,?,?)} and click anywhere ,it shows error

"org.eclipse.birt.report.data.oda.jdbc.JDBCException: Cannot get result set metadata.
SQL error #1:ORA-00900: invalid SQL statement"

please help me to solve this issue.What are the steps required to call a stored procedure within birt.

Thanks & Regards
Aarika
0

#2 User is offline   JasonW Icon

  • Senior Member
  • Icon
  • View blog
  • Group: Administrators
  • Posts: 2505
  • Joined: 08-August 07


Posted 24 January 2012 - 07:22 AM

Did you set default values for the data set parameters?

Jason
0

#3 User is offline   Aarika S S Icon

  • Newbie
  • Pip
  • Group: Members
  • Posts: 9
  • Joined: 09-January 12


Posted 24 January 2012 - 08:11 PM

Yes..
I set default values and gave binding.but now i got error like,
"org.eclipse.birt.report.engine.api.EngineException: Cannot get the result set metadata.
Cannot get result set metadata.
SQL error #1: ORA-00900: invalid SQL statement"

Regards,
Aarika
0

#4 User is offline   JasonW Icon

  • Senior Member
  • Icon
  • View blog
  • Group: Administrators
  • Posts: 2505
  • Joined: 08-August 07


Posted 27 January 2012 - 09:35 AM

Can you try hard coding the parameters as a test?
{call get_data_rpt(1,2,3,4)}

Jason
0

#5 User is offline   sunnypatel285 Icon

  • Member
  • PipPip
  • Group: Members
  • Posts: 23
  • Joined: 05-February 12


Posted 17 February 2012 - 04:22 AM

First you call stored procedure in sql editor,by giving definite parameter.
Thanks & Regards
- Sunny
0

#6 User is offline   bgbaird Icon

  • Senior Member
  • Group: Members
  • Posts: 114
  • Joined: 25-February 10


Posted 17 February 2012 - 10:35 AM

You might want to try this, It will give you a lot of flexibility while you are developing:

declare @var1 <TYPE>
declare @var2 <TYPE>
declare @var3 <TYPE>
declare @var4 <TYPE>

set @var1=?,@var2=?,@var3=?,@var4=?

{call get_data_rpt(@var1,@var2,@var3,@var4)}

Brian
0

#7 User is offline   bgbaird Icon

  • Senior Member
  • Group: Members
  • Posts: 114
  • Joined: 25-February 10


Posted 17 February 2012 - 10:37 AM

Double Post, sorry
0

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users