Skip to Content

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

 

Thanks

Kiran Israni

To report this post you need to login first.

4 Comments

You must be Logged on to comment or reply to a post.

  1. Michal Keidar

    Hi Kiran,

    In our wizard to create a tile in FLP, there’s an option to create a Dynamic tile, it needs to be selected instead of the Static tile.

    Then you should  give the service URL and choose the collection.
    You can also choose the number unit and refresh rate.

    I guess this can also be used to show the numbers of entities – isn’t it?

    Regards,
    Michal.

     

    (0) 
    1. Kiran Israni Post author

       

      Hi Michal

      From wizard itself, we can select Dynamic Tile, and make the necessary additions.

      But  in the wizard, when I selected dynamic tile, no number unit and service URL option was displayed for me. So I did in this way.

      If for you, options are coming, then definitely a number of entities will be displayed in tile. Both functionalities are same.

       

      Moreover, this method can be implemented for later use as well. Suppose if earlier the requirement was for static tile and sooner or later, the requirement changed to dynamic configuration, then we can implement functionality in this way also.

       

      Thanks

      Kiran Israni

      (0) 

Leave a Reply