Skip to Content
avatar image
Former Member

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

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({
			id:'txtPrefix13',
			width:'100%', 
			tooltip:"{i18n>LENGTH_13}",
			maxLength: 7,
			value: 
			{
				path: '/DATA/MOD_LENGTH',
				type: new sap.ui.sflex.types.Types.UpperCase({oControl:oInput})
			},
			required: true,
			change:[oController.validateDE13, this],
			editable:'{metaData>/MOD_LENGTH/editable}'
		});

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers