cancel
Showing results for 
Search instead for 
Did you mean: 

Fragment Value not appearing on setValue

rohit3611
Contributor
0 Kudos

Hi All,

We have set the value of input on click of button on a Fragment Dialog. sap.ui.getCore().byId("idFragment--txtLatitude").setValue(position.coords.latitude);

But the Value is not displaying on UI. If we close and open the dialog again, the value is appearing. Even the console getValue Showing the value.

Best regards,

Rohit

Accepted Solutions (1)

Accepted Solutions (1)

former_member228602
Contributor

Hello,

Can you check on the UI control and hierarchy. Generally when have a control as a dependent of another control we run into such issues.

Make your control as part of the content of the parent control and it should work.

Thanks and Regards,

Veera

Answers (1)

Answers (1)

junwu
Active Contributor
0 Kudos

never do this, please use binding