Parameter java.util.Collection + visualize.js

0
Hello,
 
I'm trying to use a jasper studio and visualize.js
 
In my report, I have this parameter:
 
<parameter name="status_id" class="java.util.Collection"/>
In my query, I have this clausule WHERE
$X{IN,TABLE.status_id,status_id}
And my code of visualize.js is:
visualize(function ( v ){
     params = { status_id": [{1:1,2:2}]      };         
 
     v("#container").report({        
        resource: "/public/Reports/report3",
        params: params    });   
});
But this parameter dosen't work.
How I have to send a param to java.util.Collection in visualize.js?
matheusluz39's picture
Joined: Aug 11 2015 - 7:00am
Last seen: 3 years 1 week ago

  

matheusluz39 - 3 years 10 months ago

2 Answers:

0

I don't think the problem is with Visualize.js but more of a general question on making Collection work with JasperReports. Have you looked at the following page?

http://alexandru-ersenie.com/tag/sending-collection-parameter-in-jasper-...

hozawa's picture
45129
Joined: Apr 24 2010 - 4:31pm
Last seen: 1 month 1 week ago
0

Hozawa, thaks for your answer.

I solved this problem replacing the parameter type to java.lang.Object.

matheusluz39's picture
Joined: Aug 11 2015 - 7:00am
Last seen: 3 years 1 week ago
Feedback