cancel
Showing results for 
Search instead for 
Did you mean: 

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

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

Above solution may not work with Https urls with tight security which doesn't allow cookies/url parameters .

Regards,

Koti Reddy

Answers (1)

Answers (1)

former_member185414
Active Contributor
0 Kudos

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.