cancel
Showing results for 
Search instead for 
Did you mean: 

Datetimepicker validation in SAP MII

prityshaw
Explorer
0 Kudos
246

Hello,

I want to validate this, like From Date should be greater than To Date.

in view I have used

so what should I write in my controller, help me to write controller code.

Accepted Solutions (1)

Accepted Solutions (1)

gichuhimd
Explorer

Hi,

if(this.getView().byId("date1").getDateValue() > this.getView().byId("date2").getDateValue()){
MessageBox.error("From date is greater than to date");
}else{
MessageBox.success("From date is lesser than to date");
}

Regards,

Dominic.

prityshaw
Explorer
0 Kudos

thanks for your help

Answers (0)