In the FIORI launchpad, after clicking a news tile I want the feeds to be displayed in a simple list with no links to the underlying feed. I therefore implemented an extension to the standard FIORI app AR_SRVC_NEWS where i changed the list mode of the "newsfeed"-element. I set a target mapping to the extension service in Launchpad Designer.
My problem is, the extension works well, but only on the second click on the news tile. The first click after logging in to the launchpad triggers a call for the original AR_SRVC_NEWS. Only after leaving the news feed and another click on the tile my extension ZAR_SRVC_NEWS service is called.
I noticed the source folder "AR_SRVC_NEWS" is already loaded on login to the launchpad. I got the feeling I need a plugin to the launchpad which loads my ZAR_SRVC_NEWS" instead but I´m kinda stuck here.
My extension code is placed in the 'onBeforeRendering' event handler. I´ve already tried putting it into "onInit" and "onAfterRendering" - No success.
Target mapping looks like this:
semantic object: 'NewsFeed';
action: 'displayNewsList';
Type: 'Ui5-app';
URL: '/sap/bc/ui5_ui5/sap/zar_srvs_news/';
ID: 'WebContent.AR_SRVC_NEWSExtension'
Extension code looks like this (NewsTileDrillDownCustom.controller.js):
onBeforeRendering: function() {
var newsList = this.getView().byId("newsList");
newsList.setMode(sap.m.ListMode.None);
I´ve already tried putting my code into "onInit" and "onAfterRendering" - No success.
Any hints will be appreciated.