Skip to Content
0

SAPUI5 - File attachment is not working in offline app

Sep 23, 2017 at 09:25 PM

93

avatar image
Former Member

Hello Experts,

Below is the functionality being implemented :

1. In offline mode user attaches the file or image and clicks on save

2. When user comes online, after synchronizing, offline store is expected to fire OData service to attach the attachment in SAP (i.e., file attached in the above Step 1 )

Problem statement :

When user does the action as stated on above Step 2, offline store is not triggering Odata service for attaching the file in SAP

Things done so far from my side:

1. According to below link below mentioned code is added in my manifest.json file

https://help.sap.com/viewer/42dc90f1e1ed45d9aafad60c80646d10/3.0.15/en-US/003a9184ef7e4806ac07afdce6f3f5d9.html

"definingRequests":{"Attachments":{
"url":"/Attachments",
"retrieveStreams":true,
datasource:"mainservice"}}

2. At Odata service level, the entity Attachment is set as mediatype so that metadata carries HashStream : True for this entity as per the standard Odata Modelling.

Please shed some lights on this as i am unable to figure out the actual issue here.

Regards,

Saleem

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

0 Answers