Jump to content
We've recently updated our Privacy Statement, available here ×

Update several "slaves" report when a "master" report is updated


iggythedog91
Go to solution Solved by arnaudsimon091,

Recommended Posts

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

  • Solution

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 jasperserver

2) 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 it

3) 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 updated

WARNING : This method doesn't work if you have external config (images, input controls, ...) so be prepared to copy them with another method

Hope this will be helpfull !

Link to comment
Share on other sites

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