griley Posted September 2, 2010 Share Posted September 2, 2010 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 More sharing options...
thangalin Posted September 10, 2010 Share Posted September 10, 2010 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 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now