Jump to content

Recommended Posts

Posted

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

 

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

Top Posters In This Topic

Top Posters In This Topic

Posted

Are they set as System variables?

Check the Properties panel for the variable in the master report. Its Calculation should be set to System.



Post Edited by thangalin at 09/10/2010 13:08

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