Jump to content
We've recently updated our Privacy Statement, available here ×

write PL/SQL code in jasper


Habib_E

Recommended Posts

Hi everyone, I'm new to jasper world.

I use Jaspersoft iReport Designer 5.5.0 and I need to call my reports in oracle ADF.

 

I'm wondering if we can write pl/sql code in jasper and what is the best way for doing such works?

soemthings like belows :

begin if $P{param1} = 1 then     select field_1 from table_1; else     select field_2 from table_2; end if;...........end; [/code]

Regrads,

Habib

Link to comment
Share on other sites

  • Replies 5
  • Created
  • Last Reply

Top Posters In This Topic

Thanks, you mean that it isn't possible to write pl/sql codes in jasper.

Calling stored procedure is a way but I thought we could do it in jasper itself. 

We have many conditional statements, how we can write them in jasper?

Regards,

Habib

Link to comment
Share on other sites

  • 2 years later...
  • 5 years later...

@Habib_E I just asked a question today in this forum about calling a plsql function with multiple parameters from Jasper reports. Do you have any tips for that? For proof of concept, I am using select mysch.my_function ('string 1', 'string2') from DUAL. This works. But when I try to do 

select mysch.my_function ($P{mypar1},  'string2') from dual instead, I am getting jasper errors column not found and invalid design. Parameter mypar1 is just a String parameter at prompt. It doesn't like the parameter passing in the function.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...