Jump to content

Maximum Calculation of a Date


volkerheun

Recommended Posts

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 Calculation

Name: LastMovement
Variable Class: Java.util.Date
Calculation: Nothing
Reset Type: Report
Increment Type: none
Variable Expression: $F{tdinv700_koor}.compareTo("StockOrder")!=0 ? $F{tdinv700_trdt} : new Date(01,0,1)

Properties of the Group Calculation

Name: LM
Variable Class: Java.util.Date
Calculation: Highest
Reset Type: Group
Reset Group: Item
Increment Type: Group
Incremten Group: Item
Variable Expression: $V{LastMovement}

 Can anybody help me?

Thanks.

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

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