Skip to Content

Smartfield input type

Hi,

on my UI5 web app i've created a simple input form with Smartfield input controls.

I've created the annotation service to provide field informations such as Label List items etc.. And all works fine on desktop.

The problem is: on mobile when i select a numeric input field i what that numeric input keybord is proposed by device, instead ABC keyboard is always showed up.

I've implemented onAfterRendering in order to manipulate input type

<smartField:SmartLabel labelFor="Menge"/>
<smartField:SmartField value="{menge}" id="idMenge"/>

controller:

onAfterRendering: function(){
 // set numeric types
 this.byId("idMenge").getInnerControls()[0].setType(sap.m.InputType.Number);
},

with this code now the 123 keyboard is proposed, but if control loses focus value is cleared

Is there a solution? An annotation valute that tells Smartfields to render as sap.m.InputType.Number ?

Thanks

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers