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

Recommended Posts

Is there a variable nesting depth limit in iReport, Jaspersoft Studio etc.?

I have text field with the following content.:

( $F{tckopf_R_ART}.equals( "1" ) && $V{euroFollowOnCommission} != null )? $V{charterEuroWorth} + $V{euroFollowOnCommission}: ( $F{tckopf_R_ART}.equals( "2" ) && $V{euroFollowOnCommission} != null )? $V{charterEuroWorth} + $V{euroFollowOnCommission}: ( $F{tckopf_R_ART}.equals( "1" ) && $V{euroFollowOnCommission} == null )? $V{charterEuroWorth}: ( $F{tckopf_R_ART}.equals( "2" ) && $V{euroFollowOnCommission} == null )? $V{charterEuroWorth}: null[/code]

where are "charterEuroWorth" and "euroFollowOnCommission" variables are sum calculazions from 2 different subperiods.

If I put above code to a new variable in the main report, I get "null" in the text field on the main report. I need to put it in variable in the main report, because also need to calculate the sum value from the above code for every record in the main report.

I don't know how, I can achieve it. Maybe there is a problem with the variable properties? Please let me know, if you need further information.

How can I calculate the sum value from the above code for every record in the main report?

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

I don't think there is any limit to nesting variables in jrxml, because it gets compiled to .jasper files, which are in essence just compiled java code. I don't see any inherent limitations here. It is possible that iReport or JasperStudio can only handle so much depth before it gets lost in the complexity, so the editor may give you trouble. 

 

 

 

 

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