Skip to Content
0

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

Jan 16, 2017 at 07:43 PM

301

avatar image

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?

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

2 Answers

Sergio Guerrero Jan 16, 2017 at 08:57 PM
0

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?

Show 1 Share
10 |10000 characters needed characters left characters exceeded

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.

0
Sergio Guerrero Jan 17, 2017 at 02:46 PM
0

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

Show 4 Share
10 |10000 characters needed characters left characters exceeded

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).

0

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

0

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

0

Thank you for your input , Sergio :)

1