cancel
Showing results for 
Search instead for 
Did you mean: 

SAPUI5 - File attachment is not working in offline app

former_member241395
Discoverer
0 Kudos

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/003a9184ef7e4806ac07afdce6...

"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

Accepted Solutions (0)

Answers (0)