Hi Team
Maximum age has to accept an empty message for that process i am trying in this way but I am not getting output
help me in this situation where I am stuck
hoping for a positive reply
code:
setValidationConfig: function() {
this.callParent(arguments);
// The phoneValidator() validate method is added to the [Phone] column.
this.addColumnValidator("UsrMaximumAge", this.Comparissionvalidation);
},
Comparissionvalidation: function() {
// Variable for storing a validation error message.
var invalidMessage = "";
var startDate = this.get("UsrMinimumAge");
var endDate = this.get("UsrMaximumAge");
var isValid = Ext.isEmpty(endDate);
if(isValid){
invalidMessage = this.get("Resources.Strings.date");
}
if (endDate <= startDate || endDate === 0) {
invalidMessage = this.get("Resources.Strings.comparissionvalidation123");
}
else if (endDate >= 30) {
invalidMessage = this.get("Resources.Strings.greatervalidation");
}
return {
// Validation error message.
invalidMessage: invalidMessage
};
},
Like
It's hard to understand the request. Please be more precise.
Integer and Decimal columns cannot be empty. If no answer is entered, they default to 0. I have submitted a request to enable NULL number columns. Upvote the request if you want it.