Skip to Content

GenericTile not been displayed inside a Page content

I am using sap.m.GenericTile inside an XML view (directly inside view without Page ) and its working fine.

However I wanted to have the Tile inside a sap.m.Page . When i write the code for Tile inside the content of Page , the output does not show any tile. There is no error in the console either.

In the code below once the Page and Content part is uncommented , the tile is not displayed in the output

<core:View xmlns:core="sap.ui.core" xmlns:mvc="sap.ui.core.mvc" xmlns="sap.m" 
           xmlns:l="sap.ui.layout"
		controllerName="TileTest.controllers.Main" xmlns:html="http://www.w3.org/1999/xhtml">
	<!-- <Page title="">
		<content> -->
				<GenericTile
					backgroundImage="images/Sap_Img1.jpg"
					frameType="TwoByOne" press="pressOnTileOne">
					<tileContent>
						<TileContent footer="August 21, 2016">
							<content>
								<NewsContent
									contentText="SAP Unveils Powerful New Player Comparision Tool Exclusively on NFL.com"
									subheader="Today, SAP News">
								</NewsContent>
							</content>
						</TileContent>
					</tileContent>
				</GenericTile>
                             <!-- </content>
	                     </Page> -->
</core:View>


Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    Apr 27, 2017 at 03:00 PM

    put your page in app. seems to be known issue.

    Add comment
    10|10000 characters needed characters exceeded

  • Apr 27, 2017 at 10:46 AM

    Hi Amber ,

    Can you just check in the developer options that whether your generic tile is rendered or not (its HTML code is there in the developers tool F12)

    thanks

    Viplove

    Add comment
    10|10000 characters needed characters exceeded

  • Apr 27, 2017 at 02:14 PM

    Hi Amber,

    Try using <mvc:View> instead of <core:View>. The Generic Tile should display inside the page content.

    Regards,
    Srinivasan

    Add comment
    10|10000 characters needed characters exceeded