cancel
Showing results for 
Search instead for 
Did you mean: 

Passing Parameter from fiori launchpad to the app in sapui5

Former Member
0 Kudos
6,831

Hi All,

I have a requirement to pass a parameter from Fiori launchpad to the application. Then i have to use that parameter to construct the OData service URL and read the data. So how can we pass the parameters from Fiori launchpad tile to app? Thank you in advance.

Regards,

Seshu

Tags edited by: Michael Appleby (but please start doing this on your own)

View Entire Topic
RMueller-Cajar
Explorer
0 Kudos

Hello Seshu,

have you read the following documentation?:

Embedding SAPUI5 Applications into the Fiori Launchpad Application Container - User Interface Add-On...

In your case you simply have to use the following Coding in your component.js

var sScenario = this.getComponentData( ).startupParameters.BUS_SCENARIO[0];

If you have more startup Parameters they will all be in

this.getComponentData( ).startupParameters;

(Note: you will have to use a component in your UI5 App to do so)

Regards,

Robin

Former Member
0 Kudos

Hi,

good reply but in my case, I need to jump directy the the 3rd view of the destination app.

How can I "tell" the app to get directly there.

(my first view is a field search page, then the second the client list, and the third is the clients's products.Resuming: with a click on the product ID on the first app, I aim to jump directly to the selected clients's product).

I do have a component.js and can grab the sartupParameters.GUID[0] (that has the product ID).

The documentation here (Handling Startup Parameters - User Interface Add-On for SAP NetWeaver - SAP Library) doesn't give a good explanation on how does it work or how to implement it.

Any help is welcome.

Many thanks,

Marc