Skip to Content
Author's profile photo Kiran Israni

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

 

Thanks

Kiran Israni

Assigned Tags

      8 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Michal Keidar
      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.

       

      Author's profile photo Kiran Israni
      Kiran Israni
      Blog 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

      Author's profile photo Michal Keidar
      Michal Keidar

      Hi Kiran,

      This should be fixed already.

      Regards,
      Michal.

       

      Author's profile photo Former Member
      Former Member

      Thanks!

      Author's profile photo Radu Constantin Simen
      Radu Constantin Simen

      Hi,

       

      What is the service link for a destination configured in the Portal Service configuration ?

      (a destination specific only for the Portal Service)

      Thanks

      Author's profile photo Natarajan Srikanta
      Natarajan Srikanta

      Hi Kiran Israni/Michal Keidar,

       

      Thanks for your blog..

      In step 5 , you have showed how to use filters in the service url within the Dynamic Tile

      /northwind/V2/Northwind/Northwind.svc/Products/$count?$filter=ProductName eq ‘Chai’

      My requirement is to get the value 'Chai' dynamically i.e logged in username ..I had given the sample example of my interest.

      /northwind/V2/Northwind/Northwind.svc/Products/$count?$filter=Name eq ‘loggedInUserNameFetchingDynamically’

      In this way i would like to show the total number of Products on his name.

      Any suggestion is deeply appriciated

       

      Regards,

      Natarajan

      Author's profile photo Carlos Venturo
      Carlos Venturo

      Natarajan,

       

      did you solve your question? kindly apreciated your comments if you did.

      Author's profile photo Kalpana Arumugam
      Kalpana Arumugam

      Hi Nataraj ,

      Did you find the solution for the issue mentioned by you ? Adding dynamic parameter to dynamic tile ?

      Appreciate the response if you have solutions for this .