Refresh model SAPUI5

Mmarset picture Mmarset · May 18, 2015 · Viewed 42.2k times · Source

I'm developing SAP Fiori app with master detail template. i'm having troubles,I need to update a particular data every 5 seconds, but i don't want to refresh the entire model because it takes too long to render.

Any idea how to do that?

Answer

hirse picture hirse · May 26, 2015

You could try to refresh the Binding on your control. For example:

sap.ui.getCore().byId("myList").getBinding("items").refresh();

Depending on the type of Model you are using this would send a more focused request.