cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Fiori App - shell control

former_member187794
Participant
0 Kudos

Hi All

I have created a sap Fiori App, from the samples. When I am trying to run that app in a browser, I am getting error at the below line.

sap.ushell.Container.createRenderer().placeAt("content");


I looked at some posts and they suggested to use, "<script src="/sap/public/bc/ui5_ui5/resources/sap/ushell_abap/bootstrap/abap.js"></script>". I tried including this, but it did not work in my scenario.


Could some one suggest, how to get the ushell library from a different source/server Or any other option to get this working?


Thanks very much


Regards

Giri



Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Giri,

I'm facing the same issue. Did you get solution for your problem ?

Any clue would be of great help.

Regards,

Vinuta

Former Member
0 Kudos

Hi

I have same problem.

You can edit like this:

<!-- <script type="text/javascript">

    window["sap-ushell-config"] = {

        defaultRenderer : "fiorisandbox",

        services: {

            NavTargetResolution: {

             // navigation target resolution service is configured to resolve the empty location hash to the application

                config : {

                    resolveLocal : [ {

                        "linkId" : "",

                        resolveTo : {

              additionalInformation : "SAPUI5.Component=hcm.manleaverequest",

                            applicationType : "URL",

                            url : "./" + window.location.search // pass URL query parameters to application

                        }

                    }]

                }

            }

        }   // services

    };

</script>

<!-- <script src="test-resources/sap/ushell/bootstrap/sandbox.js" id="sap-ushell-bootstrap"></script>

<!--  Bootstrap the UI5 core library -->

<!-- <script type="text/javascript">

    sap.ui.getCore().attachInitEvent(function() {

        sap.ushell.Container.createRenderer().placeAt("content");

    });

</script>-->

<!-- Application launch configuration -->

<script>

         sap.ui.getCore().attachInitEvent(function () {

             var oComponentContainer = new sap.ui.core.ComponentContainer({

                 height : "100%",

                 name:"your.namespace"

             });

             oComponentContainer.placeAt("content");

         });

     </script>