on 2018 Jun 26 11:09 AM
Hi Experts,
I am facing an issue in SAPUI5 development to disaply/download pdf using GET_STREAM method.
When I call ODATA.READ( key: value)/$value I am getting error on UI5 "The following problem occurred: Response did not contain a valid OData result200,OK,%PDF-1.3".
I am able to generate the PDF in gateway using the same URL which I am calling from SAPUI5.
Thanks
Pradeep
Request clarification before answering.
To call a media type entity, you don't have to use the oModel.read, you should open is as window, an example can be :
var isProxy = "";
if (window.document.domain == "localhost") {
isProxy = "proxy";
}
var w = window.open(isProxy + "/sap/opu/odata/sap/ZCD_TEST_SRV/TestSet("11111")/$value", '_blank');
if (w == null) {
MessageBox.warning(oBundle.getText("Error.PopUpBloqued"));
}
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
53 | |
6 | |
5 | |
5 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.