Jump to content

Using JRMapCollectionDataSource


yapkm01

Recommended Posts

In short:

1. Master report has 1 subreport.

2. The master report has 1 field (hashmap). This field in ireport equivalent to the pojo java program as shown below:

private HashMap <String, Object> reportingType = new HashMap <String, Object>();

3. I need to pass this field reportingType to the subreport and use is in the subreport.

4. In the master report under data source expression, i used JRMapCollection new

net.sf.jasperreports.engine.data.JRMapCollectionDataSource ($F{reportingType}.values())

Questions:

How do i access that $F{reportingType} in the subreport? I dont find much information on the usage of JRMapCollectionDataSource. Please advice.

 



Post Edited by yapkm01 at 11/08/2009 04:52
Link to comment
Share on other sites

  • 11 years later...
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Hi yapkm01,

I know it has certainly been a while now... Nonetheless, I wanted to know if you were able to find out how to access the $F{reportingType} in the subreport?

If so, could you please tell me how you managed to do it?

 

Thank you so much for your advice in advance...

 

JP

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