on 2014 Aug 13 8:55 AM
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)
Request clarification before answering.
Hello Seshu,
have you read the following documentation?:
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
Hi Seshu,
It is static value or dynamic value? Where is the value stored?
Please share examples and use case scenarios.
Regards, Masa
SAP Customer Experience Group - CEG
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Masa,
I will explain my scenario:
I have to make two tiles in Fiori launchpad. These two tiles have to open the same app. But the data that should be displayed on app when I click on tile 1 is different from tile 2. The data that should be read in the app is based on the parameter that I send from launchpad tile.
Coming to your questions:
It is a static value that should be passed to the app. And I think we have to store it in Fiori Launchpad tile configuration.
Thanks & Regards,
Seshu
Hi Seshu,
Do you have any issue when you set parameter in the tile?
Static App Launcher Tiles - User Interface Add-On for SAP NetWeaver - SAP Library
Regards, Masa
SAP Customer Experience Group - CEG
Hi Masa,
I will explain scenario:
I have Main.view.xml and Main.controller.js in my App. I read the data in Main.controller.js using the following statement.
var bus_scenario="Lead to Deal Approval";
oModel.read("BusScnCollection('"+bus_scenario+"')?$expand=BusinessProcess",null, null, true,function(data,response)
Now my requirement is to get the value for bus_scenario variable from Fiori launchpad configuration.
What I did in Fiori launchpad configuration:
Then, When I launch my app by clicking on tile, the URL appears in the following way.
https://<server>:<port>/sap/bc/ui5_ui5/ui2/ushell/shells/abap/FioriLaunchpad.html#ZCIO_DASHBOARD-display?BUS_SCENARIO = "ORDER TO CASH"
So I can read this parameter in Main.controller.js and assign to bus_scenario variable. But it is possible that user can change the parameter (from ORDER TO CASH to LEAD TO DEAL) directly in the URL, So that he can get the data corresponding to LEAD TO DEAL (which he should not get). Because when he clicks on ORDER TO CASH Tile, he should get only the data corresponding to it.
So, is there any other way to send parameters from launchpad configuration to app, so that we can use those parameters in app (Main.controller.js) ?
is there any way to hide parameters in the URL and send them?
Thanks & Regards,
Seshu
User | Count |
---|---|
74 | |
30 | |
10 | |
8 | |
8 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.