on 08-25-2015 10:25 AM
Hello Experts,
I am trying to do the print functionality in sapui5 through OData Service.
My service is giving the result , but in my screen its showing only Loading for a long time and not displaying anything.
Please check the below code and help me out.
var oButton = new sap.ui.commons.Button({
id : 'B-Create',
text : 'Display PDF',
width : '10em',
press : function(){
var sRead = "/zpdfset('" + oTF.getValue() + "')" + "/$value" ;
oModel.read( sRead, null, null, true, function(oData, oResponse){
var pdfURL = oResponse.requestUri;
html.setContent("<iframe src=" + pdfURL + " width='700' height='700'></iframe>");
oPanel.addContent(html);
oPanel.placeAt("content");
},function(){
alert("Read failed");});
}
});
Regards,
Vikash
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
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.