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

0

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: 4 years 3 months ago

1 Answer:

0

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
541
Joined: Nov 19 2014 - 11:02pm
Last seen: 3 years 5 months ago
Feedback
randomness