iggythedog91 Posted November 18, 2019 Share Posted November 18, 2019 Hello everyone,I was wondering if it was possible to force the update of several report when I update one of them (update master -> update slave1, slave2 and slave3)and if it was a good practise. Thanks in advance for your help. Link to comment Share on other sites More sharing options...
Solution arnaudsimon091 Posted November 21, 2019 Solution Share Posted November 21, 2019 HI iggy !I found a way to approximately do it, I will give you a sample case :In this sample, we want to have a "master report" and a "slave report" which will copy the content of the master.1) Build the master report (just a classic text field inside) and publish it on jasperserver2) Build the slave report, put only a subreport in it with this expression "repo:/path_to_your_master_folder/master_report_files/main_jrxml" then publish it3) Check with the main_jrxml file of your slave report that you have a subreport with the good expression in it (can be buggy sometimes)-> Now when you update the master report and publish it again (change the static text for example), the slave report is updatedWARNING : This method doesn't work if you have external config (images, input controls, ...) so be prepared to copy them with another methodHope this will be helpfull ! 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