Jasperreports - how to get JSON to populate a subreport

前端 未结 3 1904
迷失自我
迷失自我 2021-01-13 07:05

I am trying to get a table to populate with the same data in my main report using Jasper/iReport. How can I get the Json to carry over?

In Edit table datasource I\

3条回答
  •  半阙折子戏
    2021-01-13 07:15

    If anyone is using the JasperReports new Book Reports feature (available in version 6+) and you want to use a JsonDataSource, this is the way to pass the json payload to the subreports:

    
      
        
      
      
    
    

    You could also pass a subset of the json payload by providing node location as a parameter of the subDataSource(java.lang.String selectExpression) method. Examples:

    .subDataSource("Northwind.Customers")
    

    or

    .subDataSource("Northwind.Customers(Country == USA)")
    

提交回复
热议问题