cancel
Showing results for 
Search instead for 
Did you mean: 

Custom feed tile for SAP Fiori Lauchpad

Hello. I'm developing a custom app with as a custom feed with slide tile. The code is working in webide, but after i creating a new app in fiori launchap, give me this error:

The image below is the expected result. And its working in a normal SAPUI5 app.

This is the code that i'm using.

<core:View controllerName="com.its.customslidetile.CustomSlideTile" xmlns="sap.m" xmlns:core="sap.ui.core">
	<SlideTile class="sapUiTinyMarginBegin sapUiTinyMarginTop" tiles="{/noticias}">
		<GenericTile backgroundImage="{img}" frameType="TwoByOne" press="pressOnTileOne">
			<TileContent footer="{title}">
				<NewsContent contentText="{text}"/>
			</TileContent>
		</GenericTile>
	</SlideTile>
</core:View>

And this is the app configuration in SAP Fiori Lauchpad.

Accepted Solutions (1)

Accepted Solutions (1)

former_member365727
Active Contributor
0 Kudos

XML tag <TileContent> should be <tileContent> (first letter is small)

<GenericTile backgroundImage="{img}" frameType="TwoByOne" press="pressOnTileOne">
         <tileContent footer="{title}">
	        <NewsContent contentText="{text}"/>
	 </tileContent>
</GenericTile>
0 Kudos

Hi Srikanth, tanks for the reply. It's worked but now i get new error: The view instantiation resulted in js errorError: "Element sap.m.NewsContent#__content6" is not valid for aggregation "tileContent" of Element sap.m.GenericTile#__tile2 -

But now I'm confused. I used the example provided by SAP, and as shown below, is like TileContent.

And running the application in the SAP Fiori Launchpad Sandbox, works perfectly with TileContent.

My question now is: Is there any component difference that has not happened in this case using the SAP Fiori Launchpad? And how could you pass the place where you got this information?

former_member365727
Active Contributor
0 Kudos

I may not have understood your question clearly.....

From what I can see you are saying is that:

  • To run the app in WebIDE you need to add tha tag 'tileContent', but fiori launchpad runs the properly without the tag

to clarify things..lets check the UI5 versions in both the cases (where its working and not working)

in sap.ui.version 1.44. it is required to specify 'tileContent' as this is mandatory....not sure which release they have removed this...

Answers (0)