How to call Stored Procedure which returns ref cursor from Jaspersoft studio 6.0.1

Hi Team, 

There is a requirement where I need to convert a stored procedure into jasper report? The procedure has few input parameters and an output parameter which is a ref cursor. There are many if else , for loop , multiple dynamic queries , 2-3 cursors . So, due to the complexity involved, thought of calling the stored procedure from jaspersoft studio?

Could you please let me know, how can I achieve it?

Thanks in Advance.

shanthipriya29's picture
Joined: Jun 19 2015 - 3:50am
Last seen: 8 years 1 month ago

1 Answer:

You should call a stored procedure in jasper studio. In dataset and query window, change language to "plsql" and call your procedure like

EXEC SP_NAME $P{param1}, $P{param2}, $P{param3}, ... 

zh3ntil's picture
3699
Joined: Nov 19 2014 - 11:02pm
Last seen: 7 years 2 months ago
Feedback