cancel
Showing results for 
Search instead for 
Did you mean: 

Passing parameters from Fiori Tile

rohit3611
Contributor

Hello Experts,

Want to take advise,

I have a use case where i have same SAP UI5 component view and controller,  Based on the click of Tile want to pass some parameter, which will load or call the gateway service based on that parameter.

I want to reuse the sapui5 application, only based on parameter passed from Tile want to load different set of Data, Please advise if its possible and how can it be done?

Best regards,

Rohit

Accepted Solutions (0)

Answers (1)

Answers (1)

masa_139
Product and Topic Expert
Product and Topic Expert

Hi Rohit,

Please look at the help.sap.com. Parameter is available in the tile definition.

Static App Launcher Tiles - SAP Fiori Launchpad - SAP Library

Regards,

Masa / SAP Technology RIG

rohit3611
Contributor
0 Kudos

Hi Masa,

Thanks for inputs,

Now able to get parameters in component.js file, How can pass this to view?

createContent : function() {
return new sap.m.App({
id : "idApp"
});
},

init : function() {
sap.ui.core.UIComponent.prototype.init.apply(this, arguments);
var sScenario = this.getComponentData().startupParameters.Scac[0];
this.getRouter().initialize();

},

Best regards,

Rohit

rohit3611
Contributor
0 Kudos

Hi Raquel,

In component.js getting the parameters, how to pass to first view.

Not getting from these links what to do in component.js file to pass to the view these parameters, or should i create a different views based on the parameters.

Best regards,

Rohit

akshaya_p
Contributor
0 Kudos

How can we pass the parameters dynamically from one tile to another?

0 Kudos

Did you find any solution for this? we have a similar requirement.