Jump to content
Changes to the Jaspersoft community edition download ×

How to pass subDataset in list component


Recommended Posts

I am new in Jasper report 

 

In my project I have use the version of jasper report is 6.3.1 and take a datasource as json data sorce.

In my report designing portion I have created one subDataset and take one list component . Now i want to use that subDataset  into my list component so how this task is achive.

I have try to take dataSourceExpression like :

<dataSourceExpression><![CDATA[((net.sf.jasperreports.engine.data.JsonDataSource)$P{REPORT_DATA_SOURCE}).subDataSource("property")]]></dataSourceExpression>

but its produce the exception like 

Caused by: java.lang.ClassCastException: net.sf.jasperreports.engine.JREmptyDataSource cannot be cast to net.sf.jasperreports.engine.data.JsonDataSource

Link to comment
Share on other sites

  • 1 month later...
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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