Skip to Content

How to get length of input field in sap ui5.?

Hello Everyone,

I have created input field in flex box using xml view. my query is how we can get length of input field in controller. i tried using getMaxLength() method. but no use.

Regards,

manju

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Mar 31, 2016 at 12:52 PM

    Hi Manjunatha,

    If you mean length of data entered then you can try like this.

    this.byId("__input0").getValue().length.

    Regards,

    Add comment
    10|10000 characters needed characters exceeded