Skip to Content
0
Former Member
Jun 18, 2014 at 10:23 AM

Attaching HTML DOM events with SAP UI5 controls

463 Views

Hi,

I want users to enter only digits in a textfield(sap.ui.commons.TextField). For that I was trying to attach standard HTML event 'keydown'/'keyup' bu to my goodness it was throwing error like "undefined is not a function".

Due to this reason I have to fall back to 'liveChange' call back where I am checking if a character entered is digit or not... but it still allows user to type in the textfield....It look quite odd...

Can anyone suggest better approach? Any suggestions/help appreciated.

Thanks,

Supriya Kale