Skip to Content
avatar image
Former Member

sap.m.PDFViewer (v1.48) in Master-Detail application on a mobile device not showing

Hi,

I am developing a Master-Detail application which should show an embedded PDF in it's detail view. The project is based on UI5 version 1.48, so the new PDFViewer control can be used.
In desktop mode everything works as expected (fig.1)

But on a mobile screen PDF is not showing properly (Fig 2).

The data source property binding at the PDF control is done by OData path.
<!-- PDF-Viewer since SAPUI 1.48 -->

<FlexBox id="fbPDFViewer" 
         direction="Column" 
	 renderType="Div"
	 class="sapUiSmallMargin">
	
         <PDFViewer id="idPDFViewer"
	    	   source="{myModel>/myPDFUrl}"
		   title=""
		   busy="true"
		   showDownloadButton="false"
		   height="700px" 
		   width="95%" 
		   loaded="onPDFLoaded"
		   errorMessage="{i18n>notFoundText}"
		   errorPlaceholderMessage="{i18n>notFoundText}">
	</PDFViewer>
</FlexBox>

Is there any hint, whats going wrong here?
Thank you all!

fig1.png (60.5 kB)
fig21.png (28.9 kB)
fig22.png (52.6 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Oct 25, 2017 at 01:38 PM

    Even the sample for embedded usage doesn't work on mobile devices.
    I guess now it's a core issue...
    2017-10-25-15-36-43-sapui5-sdk-demo-kit-v20.png

    Add comment
    10|10000 characters needed characters exceeded

  • Nov 22, 2017 at 10:34 AM

    It seems to be a design descision. On github, there is a discussion about this behavior:

    https://github.com/SAP/openui5/issues/1759

    Add comment
    10|10000 characters needed characters exceeded