volkerheun Posted January 7, 2010 Share Posted January 7, 2010 Hello Everybody, I'm new to iReport and run in problems.I have a Report, where a Date-Variable is calculated in Detail-Section. Depending on an other Field the variable get the value of a Date-Field or the Value '01.01.1901'.In the Group-Section I have to calcuate the maximum Value of this Date-Variable. Is that posible? I always get the last Value but not the maximum Value.Properties of the Detail CalculationName: LastMovementVariable Class: Java.util.DateCalculation: NothingReset Type: ReportIncrement Type: noneVariable Expression: $F{tdinv700_koor}.compareTo("StockOrder")!=0 ? $F{tdinv700_trdt} : new Date(01,0,1)Properties of the Group CalculationName: LMVariable Class: Java.util.DateCalculation: HighestReset Type: GroupReset Group: ItemIncrement Type: GroupIncremten Group: ItemVariable Expression: $V{LastMovement} Can anybody help me?Thanks. Link to comment Share on other sites More sharing options...
ckampshoff Posted January 8, 2010 Share Posted January 8, 2010 Hi volkerheun,what about the Increment Type for your variable LM set to none? So it whould test every record, if it the highest date. If you choose the Increment Type "group" it whould only test the last entry of the variable LastMovement.HTHChristina Link to comment Share on other sites More sharing options...
volkerheun Posted January 8, 2010 Author Share Posted January 8, 2010 Hi Christina,thanks a lot. Now it works.Volker 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