cancel
Showing results for 
Search instead for 
Did you mean: 

How to Set Value in Fragment

Former Member
0 Kudos

Hello Ui5 Guys,

Iam trying to get a Value in Fragment but iam not able to set the value in it using Array and also can anyone tell me how i can Reload the page

i am having Navigation in my Multiple Views, but when ever you select something and Go back using Navigation,then come again to that same page ,value remaining same, but i dont want to get any value if i did navigation to any other page

please help

regards

Shardul Pandey

Accepted Solutions (0)

Answers (2)

Answers (2)

venkatachala_ck
Active Participant
0 Kudos

Hi,

How your getting the value and how your trying to the can please share the code

Try with sap.ui.getCore().byId("urControlId").setValue("urvalue");

or if your getting any error put an attachment.

Thanks & Regards

Venkat

junwu
Active Contributor
0 Kudos

update the model, you view should get reflected

Former Member
0 Kudos

How ? i am Using Setvalue to set a value in the property

junwu
Active Contributor
0 Kudos

never do that,

model.setProperty

Former Member
0 Kudos

is there any way, through which i can refresh the page data or value without reloading the page?

like now iam using setProperty   for making them Null is there any other way i can erase the value of input fields without SET

junwu
Active Contributor
0 Kudos

if u use setProperty, the page should be refreshed automatically