on 06-14-2016 9:00 AM
Hi, I'm developing a Fiori custom web application and I need to open a pdf file in a xml view.
I've develop a custom oData service for implementing the method
/IWBEP/IF_MGW_APPL_SRV_RUNTIME~GET_STREAM
Returning the data stream as:
ls_stream-value = l_value.
ls_stream-mime_type = 'application/pdf'.
copy_data_to_ref( EXPORTING is_data = ls_stream
CHANGING cr_data = er_stream )
In xml view I've put
<core:HTML id="idFrame"/>
The relative controller is
var html = this.getView().byId("idFrame");
var url = "/sap/opu/odata/sap/*****('YYYYY')/$value";
html.setContent('<iframe src="' + url +'" width="100%" height="100%"></iframe>');
When I open the view nothing appears and in Chrome console I've got this message
How can I solve it out?
Kind regards,
Giacomo
What is the result if you call the URL http://<host>:<port>/sap/opu/odata/sap/*****('YYYYY')/$value in the browser? Does it open the PDF?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This message was moderated.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.