hksunking999 Posted May 16, 2023 Share Posted May 16, 2023 Hi,According to https://community.jaspersoft.com/wiki/uploading-reports-subreports-using-rest-api , we can create a JSON to publish report with subreportHow should I design the "resource" part in JSON if I have a report which including multiple nested subreports, i.e. a subreport within a subreport.Thanks. Link to comment Share on other sites More sharing options...
Mehak Rajkumar Posted May 16, 2023 Share Posted May 16, 2023 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 More sharing options...
anish.rai Posted May 22, 2023 Share Posted May 22, 2023 Thank you for your patience, we have not forgotten you. We need a little more time with our team of experts to come up with a solution. We will respond back with an answer as quickly as we can. Link to comment Share on other sites More sharing options...
Domenico Donofrio Posted May 22, 2023 Share Posted May 22, 2023 Hello, this is how the resource part of the Json may look like. The scenario is the one you described, a subreport (subreport_1) containing another subreport (subreport_2). They should be listed at the same level and are idempotent in the Json, even if one subreport includes the other."resource": [ { "name": "subreport_1.jrxml", "file": { "fileResource": { "label": "{label}", "type": "jrxml", "content": "{base64EncodedContent}" } } }, { "name": "subreport_2.jrxml", "file": { "fileResource": { "label": "{label}", "type": "jrxml", "content": "{base64EncodedContent}" } } }] Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now