Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Refresh model SAPUI5

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?

like image 694
Mmarset Avatar asked Aug 07 '26 16:08

Mmarset


2 Answers

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.

like image 63
hirse Avatar answered Aug 10 '26 20:08

hirse


You could try to refresh the element binding of the view or control.

this.getView().getElementBinding().refresh(true);
like image 34
Jan Koester Avatar answered Aug 10 '26 20:08

Jan Koester