Skip to Content
avatar image
Former Member

Input field blank when click out side of input field

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

5 Answers

  • Apr 24, 2017 at 07:09 PM

    did u initialize your model?

    try this in your init method;

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

    Add comment
    10|10000 characters needed characters exceeded

  • Apr 18, 2017 at 05:51 AM

    did you wrote "change" event for that input ?

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

    Add comment
    10|10000 characters needed characters exceeded

  • Apr 18, 2017 at 02:44 PM

    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}" />
    Add comment
    10|10000 characters needed characters exceeded

  • Apr 19, 2017 at 05:48 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 19, 2017 at 09:16 AM

    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

    Add comment
    10|10000 characters needed characters exceeded