Kumar_rahul Posted February 29, 2008 Share Posted February 29, 2008 Hi All, I have a multi-select prompt which is populated by data fetched from database. It is implemented using $X{IN,field,parameter} There is a string which begins with a "tab-space". When a user selects this particular value we get an error: "net.sf.jasperreports.engine.JRRuntimeException: Multi parameters cannot contain null values." Any ideas/ suggestions? Thanks and Regards,Kumar Rahul. Link to comment Share on other sites More sharing options...
Kumar_rahul Posted March 24, 2008 Author Share Posted March 24, 2008 Any thoughts on this... Regards,Kumar Rahul. Link to comment Share on other sites More sharing options...
swood Posted March 26, 2008 Share Posted March 26, 2008 I think the tab-space is being lost as it is converted to HTML and back. Can your SQL query for the control encode those values and then decode them in the parameter in the JRXML? ShermanJasperSoft Link to comment Share on other sites More sharing options...
Kumar_rahul Posted March 27, 2008 Author Share Posted March 27, 2008 Can your SQL query for the control encode those values and then decode them in the parameter in the JRXML? How exactly do i do that? I have been trying to accomplish this for long but to no avail. Thanks,Rahul. Link to comment Share on other sites More sharing options...
swood Posted April 13, 2008 Share Posted April 13, 2008 You can create a query based input control. These have a display name and a value behind the scenes. There is an example of this in the User Guide - look for "Single Select Query". ShermanJasperSoft Link to comment Share on other sites More sharing options...
Kumar_rahul Posted April 14, 2008 Author Share Posted April 14, 2008 Hi Sherman, Thanks for your response. I guess my query was not properly framed. I have been using query based input control query for long without any issues. What I was interested in was "encode those values and then decode them". I wanted to know how actually can I encode and decode a value fetched from a query. Rahul. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now