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

Proposition about JRBaseFiller


Wanderer

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();

 

WBR,

Wanderer.

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Hi,

Thanks a lot. I omitted this ability. :(

As I understood, you propose something like follow:

Code:

<parametersMapExpression>
<![CDATA[$P{REPORT_PARAMETERS_MAP}]]> + $P{SubName}:="sub1.jasper"
</parametersMapExpression>
<subreportExpression
class="net.sf.jasperreports.engine.base.JasperReport">
<![CDATA["SubreportCustomizer.class"]]>
</subreportExpression>

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?

 

WBR,

Wanderer.

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