161
rated 0 times
[
162]
[
1]
/ answers: 1 / hits: 21358
/ 8 Years ago, mon, january 9, 2017, 12:00:00
I want to set validation in input field when type is set to Number and set maxlength using sapui5. But it is not working.
var Price = new sap.m.HBox({
items:[new sap.m.Label({text:Per Unit Price,required:true,design:Bold,width:110px}),
new sap.m.Input(Price,{ width:150px,type:Number,
value:{
type : 'sap.ui.model.type.Integer',
constraints : {
minLength: 1,
maxLength: 15
}
}
})]
});
More From » sapui5