Skip to Content
author's profile photo Former Member
Former Member

How to read parameters from SAP CRM WebUI ( Webpage) into SAP UI5 application

Hi,

Please share your suggestions or recommendations for the below scenario.

1. Webpage ( CRM WebUI) pass parameters as part of it's url or as some header content when user click SAP UI5 Application link from CRM WebUI.

2. It opens SAP UI5 application standard login screen which resides in gateway server ( alert type of login which is standard behavor).

3. After login the application manually, it should capture those parameters/arguments passed from CRM Webui.

Regards,

Koti Reddy

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jul 26, 2016 at 05:07 AM

    Used below sample code which I found from some scn thread.

    //get application parameters

    if(jQuery.sap.getUriParameters() != null && jQuery.sap.getUriParameters() != undefined){

    if(jQuery.sap.getUriParameters().get("Param1") != null && jQuery.sap.getUriParameters().get("Param2") != undefined){

    var uribp= jQuery.sap.getUriParameters().get("Param1").trim();

    var uribuag = jQuery.sap.getUriParameters().get("Param2").trim();

    //sap.m.MessageToast.show(uribp,{duration:15000, width:"30rem"});

    //sap.m.MessageToast.show(uribuag,{duration:15000, width:"30rem"});

    }

    else{

    // sap.m.MessageToast.show("No values determined for Param1/Param2",{duration:100000, width:"30rem"});

    Regards,

    Koti Reddy

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 08, 2016 at 04:28 AM

    Was in a similar situation as this and you should be able to pass the parameters from CRM Web UI to SAPUI5 and use them.

    Some details - https://scn.sap.com/thread/3786457

    BR.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.