on 08-23-2016 5:54 AM
<Question>: How can I read the parameter in URL on UI5 program when I click ‘Open Task’ button of approval menu in Fiori inbox?
1) Tcode : SWFVISU
2) I created a new target in Fiori
3) Screenshot of an executed result on inbox
--> The Workitem is specified as parameter ccc=00000006297, but I can’t get this parameter on UI5 program.
4) Final URL
http://XXXXXXX:8020/sap/bc/ui5_ui5/ui2/ushell/shells/abap/FioriLaunchpad.html?sap-client=100&sap-lan...?ccc=000000006297&openMode=external
So what I want to know is how I can read the parameter ‘ccc’ in above URL on UI5 program.
Hi,
you can do it like this:
var ccc = jQuery.sap.getUriParameters().get("ccc");
Regards,
Leonardo.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Leonardo Gomez, thanks for your reply.
I've tried to do that, but I still can't solve it.
Please refer to below.
1) I am trying to get parameter ‘ccc’ to Component.js of UI5 program by using jQuery.sap.getUriParameters().get("ccc"), but it doesn’t work.
2) Inbox Screen --> The Workitem is specified as parameter ccc=00000006297, but I can’t get this parameter on UI5 program.
As Leonardo suggested, please mark this Discussion with a Correct Answer (closes, but does not lock the Discussion) and Helpful Answer where appropriate. See http://scn.sap.com/community/support/blog/2013/04/03/how-to-close-a-discussion-and-why Even if you discovered the solution without any outside contributions, it helps others to understand what the solution turned out to be.
Do not use Assumed Answered as it confuses anyone looking for the specific answer. If you dig into the Getting Started link (top right of each SCN page), you are only instructed to mark Helpful or Correct Answers to Discussion responses.
Thanks, Mike (Moderator)
SAP Technology RIG
You can get the parameters from component data, like
this.getComponentData().startupParameters
Check the details.
Handling Startup Parameters - User Interface Add-On for SAP NetWeaver - SAP Library
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
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.