Skip to Content
1

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

Oct 05, 2017 at 09:56 AM

136

avatar image
Former Member

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)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

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

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


Share
10 |10000 characters needed characters left characters exceeded
Christian Graff Nov 22, 2017 at 10:34 AM
0

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

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

Share
10 |10000 characters needed characters left characters exceeded