Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Offline Application - oData - Offline Media Stream Setup

Hi all,

i made an offline application with the SAP Web IDE and the "SAPUI5 Master Detail Kapsel Offline Application" with Datas from my SAP-backend via an oData-Service. The Registration is on our SMP 3.0.9.

And now i want to get Media-files like images, pdfs,... into my Offline Application.

I've built an Media-Stream in my oData-Service to get an image.

"http://XXX.com:8000/sap/opu/odata/ori/ODATA_SMP_SRV/QmelSet('000010005901')/$value" - everything works fine and i cann see the jpg image in my browser for example.

Now i've found the informations for the "Offline Media Stream Setup" - http://help.sap.com/saphelp_smp308sdk/helpdata/en/00/3a9184ef7e4806ac07afdce6f3f5d9/content.htm?frameset=/en/b3/d5086b61a74733aac7ca9576588d9f/frameset.htm&current_toc=/en/7c/01cda6700610149b10c2f2a86d335b/plain.htm&node_id=555

But i don't understand how i have to define the request: (Getting Started with Kapsel - Part 10 -- Offline OData (SP09+) did also not help me, because in the chapter "Binary Data/Attachments" is no description for this topic)

"definingRequests" : {

  "req1" : { "url" : "/Drivers", "retrieveStreams" : true }

}

At the moment in my app it looks like this, because i'm referencing from QmelSet to Viqmel - this works fine.

"definingRequests": QmelSet: "/QmelSet?$expand=Viqmel"


How do i've to implement this line of code for the Media-Stream and does anybody have an example for me, how to get the Media-Files into my Application (Donwloadlink or directly shown).

I'm a Beginner in this topic.

Thank you very much!!!

I've also added my metadata-file - important are only the Qmel and Viqmel.

metadata.txt.zip (2069 B)
Tags:
Not what you were looking for? View more on this topic or Ask a question