cancel
Showing results for 
Search instead for 
Did you mean: 

Refreshing a Json model through loadData or refresh methods causes the tile to flicker or rerender

Refreshing a Json model through loadData or refresh methods causes the tile to flicker or rerender , is there a way to update the tile's info without rerendering the whole tile thus making it flicker each time the model is updated?

Accepted Solutions (0)

Answers (2)

Answers (2)

SergioG_TX
Active Contributor
0 Kudos

you can still refresh the tile by refreshing the model without having to refresh the tile... does your model still get refreshed without having to do the oJsonModel.refresh(true) ?

hope that works

Former Member
0 Kudos

Previously, I used the oJsonModel.refresh(true) and it caused the whole tile to flicker or re-render. I then changed the method of refreshing the JSON Model , instead of using the refresh method i only bind the needed property instead of loading or refreshing the whole model, however the tile's icon still flickers whenever the property changes ( this happens only on the google chrome browser and on my smartphone's browser , and strangely not on Firefox).

SergioG_TX
Active Contributor
0 Kudos

what version of sapui5 are you using?

i suggest you submit a ticket to SAP and see what they say... and yes could also try to set the property instead of the entire data model - it may be an easier correct solution

Former Member
0 Kudos

Most likely I will do that , yes , binding a specific property proved to be much more pragmatic.

Former Member

Thank you for your input , Sergio 🙂

SergioG_TX
Active Contributor
0 Kudos

Mohamed,

are you rerendering the tiles? the tiles shouldn't re-render if you update the model.. or setProperty within the model.

do you have any code to share so we see what is happening?

Former Member
0 Kudos

I need to refresh the tile info at a set interval , refreshing the model is done through the following , or oJsonModel.refresh(true); This causes the tiles to flicker when the model is updated.

setInterval( function() {

oJsonModel.loadData( "https://iotmdcp1942282776trial.hanatrial.ondemand.com/.......);

}, 5000 );

The model is attached to the tile container through bind aggregation.