Whenever I try to retrieve the value using DateField.getValue(),
(this.toDate.getValue()=="" && this.toDate.getValue()=="")
An error is thrown with the message:
Error Msg : DateField.getValue() is not a function
This occurs in the following snippet of code:
function(){
if(!(this.toDate.getValue()=="" && this.toDate.getValue()==""))
{
if(this.frmDate.getValue()>this.toDate.getValue()){
msgBoxShow(160,1);
this.frmDate.setValue("");
return;
} else {
//calculate duration
var frm = this.frmDate.getValue().format(Wtf.simplifyDateFormat());
var to = this.toDate.getValue().format(Wtf.simplifyDateFormat());
if((frm!=""&&to!="")){
this.expensesds.load({
params:{
frmDate:frm,
toDate:to,
start:0
},
scope: this,
callback: function(rec, opt, succ){
if(succ){
this.expensesds.groupBy("viewby");
}
}
});
this.expensesds.groupBy("viewby");
}
else return;
}
} else {
return;
}
},