Jump to content
Changes to the Jaspersoft community edition download ×

Proposition about JRBaseFiller


Recommended Posts

I have proposition about very small redesign of JRBaseFiller.

Subreports in my projects are changing before filling. So, I must preload, change and put subreports into JRBaseFiller.loadedSubreports.

I propose to move initialization of the loadedSubreport field into declaration instead of fill() method.

E.g. for ver 1.2.5:

Change line 247: protected Map loadedSubreports = new HashMap();

Exclude line 751: loadedSubreports = new HashMap();




Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic


Thanks a lot. I omitted this ability. :(

As I understood, you propose something like follow:


<![CDATA[$P{REPORT_PARAMETERS_MAP}]]> + $P{SubName}:="sub1.jasper"

Than, in SubreportCustomizer constructor, load and update subreport <$P{SubName}>.

Is it right?


But, in this case needs dynamic parameter $P{SubName}, because I have few reports which are contain more than one subreports.

Can I use $V{SubName} instead of $P{SubName}?

Is the $V-map common for report and subreports in contrast to $P-maps?




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