SAP Knowledge Base Article - Preview

2457711 - How to implement registerStreamRequest and store.refresh calls

Symptom

A Hybrid Online/Offline OData application is being developed and currently offline handling of documents has been added to the project.

The basic upload / download trough the offline database is working as expected, however the attachment handling is currently not working as it should be.

 

Namely by calling sap.hybrid.getOfflineStore().refresh(function(data) {

this.getView().byId("documentsList").getBinding("items").refresh(true);

}.

bind(this),function(error) {

this.getView().byId("documentsList").getBinding("items").refresh(true);

console.log("Failed to download stream");

}.bind(this));

Multiple entity sets are updated, however to make the requests - response faster, limiting the refresh to only the entity "Document Set" that's holding the current document is needed.

 


Read more...

Environment

SMP 3.0 SDK SP 14 PL 3

Product

SAP Mobile Platform SDK 3.0 ; SAP Mobile Platform SDK 3.1

Keywords

registerStreamRequest ; store.refresh; , KBA , MOB-SDK , SAP Mobile SDK , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.