Jump to content
Changes to the Jaspersoft community edition download ×

Mulit Select Parameter to the DB2 Procedure from IReports


ravikirank

Recommended Posts

 Hi 

I have a requirement of sending multiple values to the db2 procedure.

I tried to use the Java.Util.Collection in the Add parameter options and used $X{paramter} in the Where clause of the procedure call.

In Query if I use

 

select * from test where  $X{ IN ,v_name,MyParam}

but when I use the same in the procedure it will not allow. So how to pass multiple parameter list to a db2 procedure from iReports ?

call  USP_SAMPLE $X{ IN ,v_name,MyParam}

the above statement did not work. and gives and error message.

 

Regards

Ravi

Link to comment
Share on other sites

  • 1 month later...
  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Ravi,

 

I have same issue except we call the stored procedure in MSSQL. Have you got any solution?

 

Let me repeat the question:

 

In the report, a SQL procedure is expecting a parameter in SQL Text type, such as "abc, de, fg". The paramete in report should be java.util.List, so allow user from a multi-selection dropdown. What is correct syntax to use the List parameter in procedure call?

 

Thanks,

 

Yejin

 

 

Link to comment
Share on other sites

  • 7 months later...

Any Solution to Ravi's issue

I'm facing the same issue myself.

How to use the parameter of collection type in ireports using DB2 database,


where

(case

when ('a' = 'a') then $X{ IN ,col1,MyParam}

when ('a' = 'b') then $X{ IN ,col2,MyParam}

end)

gives error!!!!!!

 

Please help,

Thanks & Regards,

Sam

 



Post Edited by asksam55 at 03/22/2012 10:51
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...