cancel
Showing results for 
Search instead for 
Did you mean: 

SAP UI5 Table Input Field Validation

former_member249671
Participant
0 Kudos

Hi,

I am using sap.m.table which is binded to Backend OData Model.One of the columns(Quantity) in the table is editable.Editable field should allow only decimal value ( Characters and special characters ) are not allowed. even though the type is defined as Float, editable field is still allowing characters also. could you please suggest how to activate validation on standard data types.?

Editable field type is defined as below

<Input value="{ path : 'OpenQuantity', type: 'sap.ui.model.type.Float', formatOptions: { minFractionDigits: 2, maxFractionDigits: 2 }, constraints: {maximum :10} }" />

And below value is added under sap.ui5 of manifest.json

"handleValidation": true,

Accepted Solutions (0)

Answers (2)

Answers (2)

junwu
Active Contributor
0 Kudos

I think you have to handle it.

you can handle it in keydown or keyup event

maheshpalavalli
Active Contributor
0 Kudos

I understand that you have mentioned the handle validation in manifest but can you also try calling this code in view controller onInit method and in the format options, give this one maxIntegerDigits:10

sap.ui.getCore().getMessageManager().registerObject(this.getView(),true);

Best Regards,

Mahesh