Skip to Content

sap.ui.commons.TextField Max length not working correctly.

Jun 06, 2017 at 09:37 PM


avatar image
Former Member

Hi all,

On my application I have an Input field to display and accept some values . Using "sap.ui.commons.TextField", Input field is created and maxlength option is used to restrict the number of characters entered by user. Max length is set to 7.

Issue is, some times application is accepting up to 7 characters in the field and some times it accepting only up to 6 characters. When I'm refreshing screen, field is showing 7 characters and if I refresh again it is going back to 6 characters.

Any Inputs are highly appreciated.

Thanks in Advance.

		oInput = new sap.ui.commons.TextField({
			maxLength: 7,
				path: '/DATA/MOD_LENGTH',
				type: new sap.ui.sflex.types.Types.UpperCase({oControl:oInput})
			required: true,
			change:[oController.validateDE13, this],

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers