Input Date Validation in Jasper IReport Designer 5.5.0

0

Hello,
I have one report which is fetching records based on Start and End date. I want to put Input validation on both fields.

Validation Case:

  1. Message should be display like “Start date can’t be greater than end date”.
  2. Message should be display like “No data found” if data does not exist between input dates.

What I did:
I just create two text fields in No Data section and put Print When expression for text file one is:
$P{start _Date}.before( $P{End_Date}) . For other filed put Print When expression is: $P{start _Date}.after( $P{End_Date}).

Problem:
However this expression is getting failed while user is putting same date in Start and End date.

Thanks in Advance.

 

 

sudeeppandey1990's picture
Joined: Feb 4 2019 - 5:44am
Last seen: 3 months 2 weeks ago

0 Answers:

No answers yet
Feedback