cancel
Showing results for 
Search instead for 
Did you mean: 

Smartfield input type

SimoneCattozzi
Participant

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

Accepted Solutions (0)

Answers (0)