on 02-26-2016 6:34 AM
Hi ,
I am working on a requirement where I need to add a new tile and display a table data (from SAP TM) when click on new tile in Freight settlement .
Referring to CP portal guide I manage to create a tile also I understand that we need to create a service to get the data and display but as I am new to UI5 and java script I am not finding way out how should I capture the click event of my new extended tile and call the service/display the required data.
I created new BSP aaplication and files like
1) Componenet.Js
2) Controller.Js
3) View.Js
4) Fragment.Js
Also created ADDNAV, etc .
As now I had a new tile just I want to know steps to get the required data on click on this tile.
Thanks & Regards.
Hi Farroque,
It is mentioned in Guide, We have to extend the Tile File as mentioned and give the Id for it.
On click on ID, you have to open your new View. If you want code also, please let me know.
Best regards,
Rohit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rohit,
Thanks for the reply,I have created a view for adding new tile you and also tried with creating an another view referring to standard collaboration portal it couldn't work for me as i dont know java iam finding it very difficult where to write code how to link the tile .
It will be of a great help of you let us know the code and other details.
Regards & thanks in advance.
Hi Farroque,
As Jan has already mentioned, all things are there in guide in point 8.1
Just for reference writing below.
jQuery.sap.declare("zcoll_portal.Component");
jQuery.sap.require("sap.tl_collaboration_portal.Component"); // new custom component
sap.tl_collaboration_portal.Component.extend("zcoll_portal.Component", { metadata : { customizing : { "sap.ui.viewExtensions": { "sap.tl_collaboration_portal.view.home": { "extTileFreightOrderManagement": { className: "sap.ui.core.Fragment", fragmentName: "zcoll_portal.TileFreightOrderExtension", type: "JS" } } } } } });
Please update if still having issues.
Best regards,
Rohit
Hi Rohit,
Thanks for your reply but as I mention earlier I have done this all and also I am able to add my tile in enhanced portal , Now I am stuck in how to display the data when click on my added tile
in enhancement . What I have to do now, Do I need to create a addition view file if yes then how should I link that by the ID .
Regards
Farroque
Hi Farroque,
in your component.js you have to define a controller extension for sap.tl_collaboration_portal.view.shell as described in chapters 7.2/7.3.
With this, you should be able to display your new view without a home tile by choosing the shell area header. If that works, continue with chapter 8.
Create your home tile as described in chapter 8.1. The attribute targetNavigation is the link to the newly created navigation area above. The area ID is a string consisting of "nav" + "-" + ID of the navigation area + "-" + key of the sub item.
Best regards,
Jan
User | Count |
---|---|
15 | |
4 | |
3 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.