openui5 icon indicating copy to clipboard operation
openui5 copied to clipboard

Feature Request: valueLiveUpdate for sap.m.MaskInput

Open daletman opened this issue 1 year ago • 4 comments

Hi,

are there plans to add valueLiveUpdate to sap.m.MaskIput?

Best regards.

daletman avatar Oct 26 '23 11:10 daletman

Hello @daletman,

There is liveChange event in sap.m.MaskInput available since SAPUI5 version 1.104: https://sapui5.hana.ondemand.com/#/api/sap.m.MaskInput%23events/liveChange

If it does not fulfil your requirements, please describe in details the use case and why do you need valueLiveUpdate event.

Thank you in advance!

Kind Regards, Niya

niyap avatar Oct 27 '23 11:10 niyap

Hello @niyap,

yes there is the liveChange event, but sap.m.MaskInput does not have the valueLiveUpdate property like for example the sap.m.Input. From the property describtion of sap.m.Input which has an valueLiveUpdate property:

Indicates when the value gets updated with the user changes: At each keystroke (true) or first when the user presses enter or tabs out (false).

Note: When set to true and the value of the Input control is bound to a model, the change event becomes obsolete and will not be fired, as the value in the model will be updated each time the user provides input. In such cases, subscription to the liveChange event is more appropriate, as it corresponds to the way the underlying model gets updated.

https://openui5.hana.ondemand.com/api/sap.m.Input#controlProperties

So the functionality I need is, that with ervery keytroke the value in the bound Model is updated, so that an getValue() on the MaskInput does give me the latest value.

daletman avatar Oct 27 '23 12:10 daletman

Hello @daletman,

Thank you for sharing your enhancement proposal. I've created an internal incident 2370147562. The status of the issue will be updated here in GitHub.

Regards, Niya

niyap avatar Nov 14 '23 08:11 niyap

Hello @daletman ,

There is JIRA BLI created for this feature request (BGSOFUIBALKAN-7793), and it will be developed in the future.

Best Regards, Nikolay Hristov

NHristov-sap avatar Feb 06 '24 08:02 NHristov-sap