My Requirement is if user sets a date less than today, a warning message should be shown to the user. The message is getting displayed but not after user tabs out from the date field but after he does something like selecting some date in other field. What I am doing wrong?
Below is my code:
// check Next Calibration date
if (!mbo.isNull("BBANEXTCAL")) {
CalDate = mbo.getDate("BBANEXTCAL");
Calibrate = mbo.getBoolean("BBACALIBRATEDTOOL");
currentDate = new Date();
if (CalDate.compareTo(currentDate) <0 && Calibrate ==1) {
// display error message
warngroup = "BBANEXTCAL";
warnkey = "BBANEXTCAL";
}
}
#AssetandFacilitiesManagement#SupportMigration#Maximo#Support