Skip to Content
0

Smartfield input type

Feb 09 at 02:52 PM

34

avatar image

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers