Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8065

Re: Input Suggestion/HelpValue Validation

$
0
0

JS Bin - Collaborative JavaScript Debugging</title> <link rel="alternate" type="application/jso…

 

tfOppnumber.attachValidationError(function(error){  this.setValueState(sap.ui.core.ValueState.Error);  this.setValueStateText(error.mParameters.exception.message);
}, tfOppnumber);     
tfOppnumber.getBinding("value").setType(  {  formatValue : function(sValue, sTargetType) {  },  parseValue : function (sValue, sSourceType) {  return sValue;  },  validateValue : function (sValue) {  if (sValue.length!=4) {  throw new sap.ui.model.ValidateException("Year must be 4 chars long");  }  },  getName : function () {  return "my.type.Year";  }  }
);

Viewing all articles
Browse latest Browse all 8065

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>