cancel
Showing results for 
Search instead for 
Did you mean: 

Deploying a ui5 app to launchpad when coming from a fiori app template

Former Member
0 Kudos

Dears,

We have the following development enviroment for Fiori:

Gateway 7.4
Backend: Sap Netweaver 7.4 SP15
Local Web IDE with Orion Version 160811

We don't have HCP, our gateway is local in our network, we also don't have Web dispatcher or Sap Router, which means that we can't deploy directly from Web IDE and instead we have to do it manually uploading the folder to Gateway.

We made an app from scratch in Web IDE and export it as zip to deploy it in launchpad. Everything went well in that case, we add the app to a rol or use the standalone url to test it an worked fine.

The problem is when we make a Fiori Worklist Template app from Web IDE and then try to deploy it the same way the other application.

When we run the standalone url of the app we get the following javascript error:

<code>UncaughtTypeError:Cannot read property'createRenderer' of undefined.

Our flpSandbox.html is the following (without html tags):

<code><script>
        window["sap-ushell-config"]={
            defaultRenderer :"fiori2",
            renderers:{
                fiori2:{
                    componentData:{
                        config:{
                            search:"hidden"}}}},
            applications:{"Notastest1-display":{
                    additionalInformation:"SAPUI5.Component=appnotatest",
                    applicationType:"URL",
                    url:"../",
                    description:"Despliegue de Notas Alumnos.",
                    title:"Calificaciones Mobile"}}};</script><scriptsrc="../test-resources/sap/ushell/bootstrap/sandbox.js"id="sap-ushell-bootstrap"></script><!-- Bootstrap the UI5 core library --><scriptid="sap-ui-bootstrap"src="../resources/sap-ui-core.js"data-sap-ui-libs="sap.ushell, sap.collaboration"data-sap-ui-theme="sap_bluecrystal"data-sap-ui-compatVersion="edge"data-sap-ui-resourceroots='{"appnotatest": "../"}'data-sap-ui-frameOptions='allow'>// NON-SECURE setting for testing environment</script><script>
        sap.ui.getCore().attachInit(function(){// initialize the ushell sandbox component
            sap.ushell.Container.createRenderer().placeAt("content");});</script>

Our Manifest:

<code>{"_version":"1.3.0","sap.app":{"_version":"1.3.0","id":"appnotatest","type":"application","i18n":"i18n/i18n.properties","title":"{{appTitle}}","description":"{{appDescription}}","applicationVersion":{"version":"1.0.0"},"dataSources":{"mainService":{"uri":"/sap/opu/odata/sap/ZNOTAS3_SRV/","type":"OData","settings":{"odataVersion":"2.0","localUri":"localService/metadata.xml"}}},"sourceTemplate":{"id":"sap.ui.ui5-template-plugin.1worklist","version":"1.36.2"}},"sap.ui":{"_version":"1.3.0","technology":"UI5","icons":{"icon":"sap-icon://task","favIcon":"","phone":"","phone@2":"","tablet":"","tablet@2":""},"deviceTypes":{"desktop":true,"tablet":true,"phone":true},"supportedThemes":["sap_hcb","sap_bluecrystal"]},"sap.ui5":{"_version":"1.3.0","rootView":{"viewName":"appnotatest.view.App","type":"XML","id":"app"},"dependencies":{"minUI5Version":"1.36.0","libs":{"sap.ui.core":{"minVersion":"1.36.0"},"sap.m":{"minVersion":"1.36.0"},"sap.ushell":{"minVersion":"1.36.0"},"sap.collaboration":{"minVersion":"1.36","lazy":true}}},"resources":{"css":[{"uri":"css/style.css"}]},"contentDensities":{"compact":true,"cozy":true},"models":{"i18n":{"type":"sap.ui.model.resource.ResourceModel","settings":{"bundleName":"appnotatest.i18n.i18n"}},"":{"dataSource":"mainService","settings":{"metadataUrlParams":{"sap-documentation":"heading"}}}},"routing":{"config":{"routerClass":"sap.m.routing.Router","viewType":"XML","viewPath":"appnotatest.view","controlId":"app","controlAggregation":"pages","bypassed":{"target":["notFound"]},"async":true},"routes":[{"pattern":"","name":"worklist","target":["worklist"]},{"pattern":"EntityAsignaturasSet/{objectId}","name":"object","target":["object"]}],"targets":{"worklist":{"viewName":"Worklist","viewId":"worklist","viewLevel":1},"object":{"viewName":"Object","viewId":"object","viewLevel":2},"objectNotFound":{"viewName":"ObjectNotFound","viewId":"objectNotFound"},"notFound":{"viewName":"NotFound","viewId":"notFound"}}}}}

We try to create another index.html to solve the create rendered, we solved the error but the app still does not work, it only shows the launchpad without the tile. Keep in mind that when we test the app from local Web IDE, first it opens a launchpad with the tile of the application.

Thank you very much for your help.

0 Kudos

If you have found the solution, please let us know. I'm facing the same problem and I still haven't found how to fix it.

Accepted Solutions (0)

Answers (2)

Answers (2)

Bernard
Participant
0 Kudos

Fiori 2 became available with s4 1608. Perhaps you are running with an earlier version?

cristiano_santos
Participant
0 Kudos

Hi, did you find the solution? I´m facing the same issue. Regards.