Jump to content

Sub Report Return Values (iReport v3.7.3)


griley

Recommended Posts

I am attempting to return a value to the master report from a sub report.

I have set up a variable to contain the return value on the master report :

<variable name="OnCharge" class="java.lang.String" resetType="None"/>

I have also added a variable to the sub report :

<variable name="OnCharge" class="java.lang.String">
  <variableExpression><![CDATA[$F{ON_CHARGE}.toString()]]></variableExpression>
  <initialValueExpression><![CDATA[$F{ON_CHARGE}.toString()]]></initialValueExpression>
 </variable>

I have mapped the return value in the master report as:

<returnValue subreportVariable="OnCharge" toVariable="OnCharge"/>

 

However, the return value is always NULL even though the Field ON_CHARGE has a value.

Could someone please tell me where I am going wrong

 

Thanks

 

Link to comment
Share on other sites

  • 2 weeks later...
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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