erwanletutour.elt Posted May 16, 2022 Share Posted May 16, 2022 I have 2 jasperserver, I exported the report from the first one and imported them on the second one. But when i tried to edit my report using rest service, I have 400 BAD REQUEST because all my subreport path where replaced by repo:subreportName.jrxml.In my 2 servers I have the same folder hierarchy :rootorganisationprojectreport folder 1report 1sub report 1sub report 2report folder 2 ...I tried to overwrite the subreports path to have something more global but all my tentative didn't worked. Here a list of all my tentative/root/Organisation/Project/Reports/Reports-family/report-folder/sub_report_1.jrxml/root/Organisation/Project/Reports/Reports-family/report-folder/sub_report_1/Organisation/Project/Reports/Reports-family/report-folder/sub_report_1/Organisation/Project/Reports/Reports-family/report-folder/sub_report_1.jrxml/Project/Reports/Reports-family/report-folder/sub_report_1.jrxml/Project/Reports/Reports-family/report-folder/sub_report_1sub_report_1sub_report_1.jrxml./sub_report_1.jrxml./sub_report_1repo:sub_report_1repo:sub_report_1.jrxmlIf someone have any clue to how I can solve this issue, he would have all my thanks. Link to comment Share on other sites More sharing options...
erikmarbad Posted May 16, 2022 Share Posted May 16, 2022 In my case, I have the subreports in a folder called subreports, so follow the next path"repo:/subreports/report.jrxml"I have placed the address parameter as:<parameter name="DIR_SERVER_SUBREPORTS" class="java.lang.String" isForPrompting="false"> <defaultValueExpression><![CDATA["repo:/subreports/"]]></defaultValueExpression> </parameter>So in the subreport I only have to place the parameter + the report$P{DIR_SERVER_SUBREPORTS} + "subreport.jrxml"Note: Do not use - to separate words, as this is not recognized by jasperserver, use _ instead. 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