Jump to content
Changes to the Jaspersoft community edition download ×

Subreport using diffrent JSON Data Source from URL does not return any value


majdoleen

Recommended Posts

I am trying to add a sub report to the main report( each report is using different JSON Data Source from different URL) but they are using the same paramter:

the master report is working fine but when it comes to to the sub report it doesnot work and returns no data! I am not sure if I am doing the correct connection,

The Parameter for both report is called Customer_Id,

the first json url is: http://localhost/api/services/app/Customers/GetAll

the second json URL: http://localhost/api/services/app/ParcelOwners/GetAll

Separately both are working fine

see the attached screen shoot

converted-file.png.c880f482ab3544504385fb2d6a75bfb9.png

 

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

Thank you for posting to the Jaspersoft Community. Our team of experts has read your question and we are working to get you an answer as quickly as we can. If you have a Jaspersoft Professional Subscription plan, please visit https://support.tibco.com/s/ for direct access to our technical support teams offering guaranteed response times.
 

Link to comment
Share on other sites

Hi,

your sub-report will automatically use the default data connection of the main report.

To fix that you can export the data connection for the sub report into a file:


bildschirmfoto_2023-07-18_um_09_44_54.png.e4b1564312c33af82777dbae4e7cf4e0.png

In you sub-report you can select that file to set the connection to your 2. data source:

In the outline select the highest element and in the properties you can than select the "Default Data Adapter" 

bildschirmfoto_2023-07-18_um_09_45_53.thumb.png.8963bba9449c3e8fd7e38203093b6892.png

Please let me know it that was the solution.  THX

Regards TT

 

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