Skip to Content
0

Input field blank when click out side of input field

Apr 18, 2017 at 04:40 AM

96

avatar image
Former Member

Hi,

I am using simple form layout control in our app and incorporate sap.m.Input control in it. But the issue is that When I fill something in the input control and click someWhere outside of control in screen. The Input control become blank.

Please suggest something.

Thanks in Advance

Somdutt

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

5 Answers

Jun Wu Apr 24, 2017 at 07:09 PM
1

did u initialize your model?

try this in your init method;

YOURMODEL.setProperty("/Parameter_Threshold",[{"maximum":"","minimum":""}])

Share
10 |10000 characters needed characters left characters exceeded
Akhilesh Upadhyay Apr 18, 2017 at 05:51 AM
0

did you wrote "change" event for that input ?

are you using odata model v2 and setting DeferredGroups to it ?

Share
10 |10000 characters needed characters left characters exceeded
Nils Lutz Apr 18, 2017 at 02:44 PM
0

did you set attributes of the input control to properties of an odata model? if yes, maybe your odata model is not instantiated correct and therefor the filled in value is lost

<Input id="input01" value="{Property}" />
Share
10 |10000 characters needed characters left characters exceeded
Mahesh kumar palavalli Apr 19, 2017 at 05:48 AM
0

If you are using data binding to the input field and if it is incorrect, this behaviour will arise.

please paste you code for better analysis.

Best Regards,
Mahesh

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Apr 19, 2017 at 09:16 AM
0

Hi All,

Please find the code which I have used in my Application.

I have not used any change event for input control.

Actually I am performing CRUD operations. But it is also issue coming when I try to create data.

new sap.m.Text({text:"Maximum"}).addStyleClass("simpleFormAlignRight"),
new sap.m.Input("para_infoMaximumInput",{
enabled:"{dataEdit>/enabled}",
value:"{parameterOtherValue>/Parameter_Threshold/0/maximum}"
}),

new sap.m.Text({text:"Minimum"}).addStyleClass("simpleFormAlignRight"),
new sap.m.Input("para_infoMinimumInput",{
enabled:"{dataEdit>/enabled}",
value:"{parameterOtherValue>/Parameter_Threshold/0/minimum}"
}),

Please suggest Somthing.

Thanks & Regards

Somdutt Sharma

Share
10 |10000 characters needed characters left characters exceeded