How to upload ReportUnit with few subreports via RestAPI

Hello,

I'm uploading reportUnit to the server via REST API. Everything ok, when I uploading single file report. Now I need to upload report with two subreports. I'm trying to send a report as jrxml file:

{

            "label": "Subrep.jrxml",
            "uri": "Reports/Dact_files/Subrep",
            "type": "jrxml", 
            "content": ""             
 }

I'm getting 201 response, but newly added file don't appears in ReportUnit file list. 

When i specifying uri not too hidden reportUnit files, the file was created.

saulius_c's picture
Joined: Feb 3 2017 - 4:27am
Last seen: 4 years 3 months ago

Hi! 

Did you solve this? I'm facing the same issue. I'm not able to upload a report with subreports.

Thanks

anibal.duardo - 1 year 9 months ago

Hi,

Yes, you can upload report with its subreport(s) using REST API. Refer below Wiki article, which I have created for this requirement:

https://community.jaspersoft.com/wiki/uploading-reports-subreports-using-rest-api

dpahlani - 1 year 8 months ago

1 Answer:

Hi,

Yes, you can upload report with its subreport(s) using REST API. Refer below Wiki article, which I have created for this requirement:

https://community.jaspersoft.com/wiki/uploading-reports-subreports-using-rest-api

dpahlani's picture
3583
Joined: May 7 2020 - 1:32am
Last seen: 1 day 16 hours ago
Feedback
randomness