cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to open PDF in iframe sap ui5

aliimran_uppal
Participant
0 Kudos

oModel.read("ZHMSREQUESTPRINTSet('00000001')/$value", {
			success: function(oData, response) {
				
				var h = new sap.ui.core.HTML();
				var oContent = '<iframe id="iframeContentPanel" ' + 'src="' + response.requestUri + '"width="100%" height="100%"></iframe>';

				h.setContent(oContent);
				

                                 *Panel Control*
				var p = sap.ui.getCore().byId("p");
				
				p.addContent(h);
			
			},


			error: function (oError) {


			}
			
			});

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member322772
Active Participant
0 Kudos

Is response.requestUri correct? If you run the URL in a browser does it download the file you are trying to render?