Jump to content
Changes to the Jaspersoft community edition download ×

subreport Json DataSource


louis.perrot_1

Recommended Posts

Hi everybody,

I need to create a report with different subreport. This subreport are based on a part of my json datasource. I created the datasource to the json file on my report and I tried to pass this datasource to the different subreport.

When I execute my main report, I see my subreport but all the fields on the subreport are null. 

For example, in the main report I have this json datasource :

{
    title:"Main Report",
    datas:[
        {
        titleSR:"subreport 1"
        },
        {
        titleSR:"subreport 2"
        }
    ]
}

I have a subreport in detail band of my main report and I want display this subreport with each element of datas (display "subreport 1", "subreport 2")

How can i configure my datasource of my subreport ?

thank you in advance for your help 

(Sorry about my English)

 

Link to comment
Share on other sites

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