Dynamic Tile in SAP WEBIDE
This blog is to create a dynamic tile displaying count of products (let’s say), for beginners.
1)Destination in hanatrial. If not, then make destination first.
2)Your project must be deployed to the Hana cloud platform and register to Fiori launchpad.
If it is not so, then follow the below steps.
Click on Deploy button. A dialog box will be displayed and click on “Register to SAP Fiori Launchpad”. Following Dialog will be displayed. Make the below changes, give any “Unique” Application Name and click on Next.
After clicking on Next and then Finish, followinf dialog will be displayed. Click on “Open SAP Fiori Launchpad”.
The following screen will be displayed. Click on User Icon on top left corner. and then click on “Manage Site”.
3)Following screen will be displayed.
4)Click on Apps and you will find your application.
Click on Edit and Go To Visualization in “Icon Tab Bar”. In “Tile Properties”, select “Dynamic App Launcher” and apply following changes. I am using for URL http://services.odata.org/V2/Northwind/Northwind.svc/Products
5)In Dynamic Data Section
a) Write any name in number. For me, it is total products in my “Products” Collection.
b) In Service , write /northwind/V2/Northwind/Northwind.svc/Products/$count.
Format is like this DESTINATION_NAME/relative_url/query.
Make sure you have your destination in your hanatrial. If not set the destination first.Click on Save and click on “Publish and Open” from the dialog displayed.
Suppose, you have to apply filter and you have to count number of products having name “Chai”, then in 5) step, write the below url in Service
/northwind/V2/Northwind/Northwind.svc/Products/$count?$filter=ProductName eq ‘Chai’
Please feel free to ask any doubt or to make any suggestions