p_a Posted December 18, 2006 Share Posted December 18, 2006 Hi, Is there a way for setting an arrayList elements which comes from hashMap in a textField? (For example textField1 set with arrayElement[1] ) Please help me to solve this problem. Link to comment Share on other sites More sharing options...
jys Posted December 18, 2006 Share Posted December 18, 2006 In main report, make parameter class type is java.util.ArrayListThis option not provided.u make it type on that field. To get value, use like this,$P{<parametername>}.get(1) Link to comment Share on other sites More sharing options...
p_a Posted December 20, 2006 Author Share Posted December 20, 2006 Hi, Thanks for your reply.But I still have problem in setting ArrayList into fileds!!! I sent my parameters in an arraylist by the hashmap and in iReport I define a parameter with type ArrayList and set my value as you said in my fields($P{test}.get(1))And I got this error:net.sf.jasperreports.engine.fill.JRExpressionEvalException Can you help me to solve this problem please????:( 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