Let's follow up this discussion at the Neptune Community

(this forum will be kept in read-only mode)

Formatting Input Fields

Hi everyone,  just a heads up to our cool developers community :)

A known UI5 issue is: applying a formatter to an input field breaks the binding.  This means that the model does not get updated.

In other workds, when a formatter is added to an input field, the data entered manually is not stored in the Model and not sent to the backend. If data was selected from a search and then changed the previous value will be sent through.

Since UXP 4.0 SP1, we have sap.m.MaskInput control. It will not format the data that is sent to the backend (we can easily do it in ABAP), but at least we can show it nicely to the end user. :)

A big thank you to Rikardt Louw from Soltius NZ for reminding us of this issue!

Login or Signup to post a comment