cancel
Showing results for 
Search instead for 
Did you mean: 

Binding same SAPUI5 application to multiple tiles

ShadM
Explorer
0 Kudos

Hello All,

We have a requirement of launching the same application as target app for multiple tiles.

Since we are just showing a table with different data, we don't want to create multiple applications. Instead we want to create one application and attach it to different tiles and have a parameter in the tile configuration which directs the app for the odata to be pulled.

The question is how to read those tile parameters in the SAPUI5 application?

Accepted Solutions (1)

Accepted Solutions (1)

Fabrice
Active Participant
0 Kudos

Hi,

in the component.js file of your application, in the init function for exemple, you can access the tile parameters with :

this.getComponentData().startupParameters

Regards

Fabrice

Answers (2)

Answers (2)

ShadM
Explorer
0 Kudos

Hi Fabrice,

Thanks for the quick reply. I tried the function which you mentioned, but the component data is undefined.

I am passing the parameter "mandt=client_number" in the semantic object parameters field. Please find the below screenshot. Is this the correct way of passing the parameters to the tile application?

laurent_burtaire
Active Contributor
0 Kudos

Hello,

do not understand your request: one Tile is enougth.

You just need to have a filter, or a key, when you call the OData in order to display corresponding data into the Tile.

Regards.

Laurent.

ShadM
Explorer
0 Kudos

Hello Laurent,

We are trying to show a report on click of the tile and we don't want to create more than one application for a table alone. So, we want to create just one application but the data to be shown would be depending on the selected tile parameters.