2004 IR Help Posted August 21, 2006 Share Posted August 21, 2006 By: Andreas Icecold - cubcuz Variable ResetType 2005-05-23 01:33 Hello, i´ve defined a variable and fill it with the first value of my datasource ( that´s the column title ). this works fine on the first page. but after pagebreak the variable´s value is null, although resetType is Report. My variable: <variable name="head" class="java.lang.String" resetType="Report"> <initialValueExpression>$F{KDC5AZUNAME}</initialValueExpression> </variable> Can anybody tell me why. Thanks for your help. cub By: Andreas Icecold - cubcuz RE: Variable ResetType 2005-05-23 07:40 I´ve found a solution for this problem by myself. I have to initialize the variable with itself. <variable name="KDC5AAKTUAL" class="java.lang.String" resetType="Report"> <variableExpression>$V{KDC5AAKTUAL}.toString()</variableExpression> <initialValueExpression>$F{KDC5AAKTUAL}.toString()</initialValueExpression> </variable> However, I don´t understand this behaviour. But if someone does, please post here. 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