Skip to Content
3

Custom feed tile for SAP Fiori Lauchpad

May 08 at 01:10 PM

53

avatar image

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.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Srikanth KV May 08 at 03:53 PM
0

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>
Show 2 Share
10 |10000 characters needed characters left characters exceeded

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?

0

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...

0