Jump to content
Changes to the Jaspersoft community edition download ×

Passing Map to Jaspersoft studio report


marc-andre.desrochers

Recommended Posts

Hello,

I am trying to pass data i got from severals Databases in Java to a Jasper Report via Rest.
Putting the query in the report is not possible and I do not want to create dependencies between Java and Jaspersoft. I then figured I could pass the data under the form of a Map or even a List of Map.
It however give me an error. I can already generate several reports and all simple parameters types like String and Integer work.

I am using Ubuntu and Jaspersoft studio 6.3.1 final

Here is my setup:

Slection_041(1).png.3765b8268e2a7beca2da184fe31d7384.png

Slection_036(1).png.6305ff786d5df0887567a30c704469ae.png

The next picture depict how i get the map on Jaspersoft studio. the $P{REPORT_PARAMETERS_MAP} is to see what the map look like in his textual form

Slection_038(1).png.0f0ecea04dec4d887924246add1ffba2.png

 

This is the error (in java) that is caused during the generation of the report:

Slection_039(1).png.e2b7699c9adfd2c7920b590b9a21c0a6.png

 

If i remove the box that query the map, the report generate correctly and provdide me with the textual representation of the map.

Slection_040(1).png.40878b3ea97b314551d2ef39f62e9921.png

The same textual representation is generated if i set Is Prompting = true and generate the map manually in the preview. The main difference beeing that with the preview, it work.

I'd be grateful for any help you can offer.

-Marc-André

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

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...