If(dtGroundDate_1.SelectedDate < dtActualReturn_1.SelectedDate, Notify("Grounding Date < Actual Return Date", NotificationType.Error); Set(IsDateValid, false), Set(IsDateValid, true));
If(dtinspectionRequest_1.SelectedDate <= dtGroundDate_1.SelectedDate, Notify("Inspection Requested Date < Grounding Date", NotificationType.Error); Set(IsGDateValid, false), Set(IsGDateValid, true));
If(dtInspectionReceived_1.SelectedDate <= dtinspectionRequest_1.SelectedDate, Notify("Inspection Received Date < Inspection Requested Date", NotificationType.Error); Set(IsIRDateValid, false), Set(IsIRDateValid, true));
If(dtReInspectionReq_1.SelectedDate <= dtInspectionReceived_1.SelectedDate, Notify("ReInspection Requested Date < Inspection Received Date", NotificationType.Error); Set(IsReDateValid, false), Set(IsReDateValid, true));
If(dtReinspectionDate_1.SelectedDate <= dtReInspectionReq_1.SelectedDate, Notify("ReInspection Date < ReInspection Requested Date", NotificationType.Error); Set(IsRIDateValid, false), Set(IsRIDateValid, true));
If(IsDateValid && IsGDateValid && IsIRDateValid && IsReDateValid && IsRIDateValid ,
Patch('ARV Requests-DEV', LookUp('ARV Requests-DEV', ID = galIssues.Selected.ID),
{'Customer (Customer0)':CustomerDescTxt_1.Text,
'ARV Request Status': {Value: drpARVStatus_1.SelectedText.Value},
'Miles Loan': {Value: MILESRadio_1.Selected.Value}, etc....
The requirement is to patch IF is true. However, it may work for the 1st IF, but thereafter, only on the last IF and all dates need to be added to effect a save.
Expected required behaviour to evaluate each date added according to each rule.
Kind regards
Rene Voller