Jump to content

SubDataSet calls REST endpoint again


Recommended Posts

Hi all,

I've created a report based on "JSON File" adapter.
I'm getting data from an external URL (http://.....).
The JSON returned from the external service contains some arrays so I created sub datasets and populate them with
"((net.sf.jasperreports.engine.data.JsonDataSource)$P{REPORT_DATA_SOURCE}).subDataSource(".someNode")"

This is all working fine except for one thing, the external services is called over 40 times.
It seems like every time the sub dataset is used the service is called again, I would expect the service being called once and the sub datasets would just navigate through the JSON response.
Do I need to do something special to accomplish this or is it just not possible ?

Thanks in advance.
 

 

Link to comment
Share on other sites

  • 2 weeks later...
  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

  • 4 weeks later...

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