Skip to Content
0

PDF Display in mobile view sapui5

May 24, 2017 at 11:51 AM

30

avatar image

Hi All,

I have implemented below code in my application to integrate PDF:

var odataModel = new sap.ui.model.odata.ODataModel(finalUrl, false); talent.getView().setBusy(true);

odataModel.read(sRead, null, null, true, function(oData, oResponse)

{

var pdfURL = oResponse.requestUri;

var newpdfURL = pdfURL + "?&embedded=true";

var html = new sap.ui.core.HTML();

html.setContent("<iframe src=" + newpdfURL + " style='width:600px; height:500px;' frameborder='0'></iframe>");

var panel = new sap.m.Panel(); panel.addContent(html);

talent.pdfFragment.addContent(panel);

}

Its working properly in desktop view but pdf is not getting displayed in mobile view, its showing blank page and also automatically downloads the PDF

Please can anyone help me regarding this issue

Thanks

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

0 Answers