cancel
Showing results for 
Search instead for 
Did you mean: 

Issue with sap UI5 deployement from web ide

nagendran_r2
Explorer
0 Kudos

Hello All,

I have developed a custom Odata with my on  premise gateway system.

Then using that Gateway, I developed a UI5 Application using WEB IDE and its working fine there with some test data.

Then I deployed to my server, I got the BSP application with Page fragments.

Now I want to test this app from my server.

I dont have Index.htm

hence, I put this on my launchpad using LPD_CUST.

But when I click on the app from my launchpad it says .

Pls check attachment for the detailed error.

Pls help to check this issue.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

What i noticed with deploying apps from Web ide, is that the relative path declerations are handled a bit different.

As you see in your path the app tries to go to the path /undefined/zhr/controller/errorhandler.js

So maybe in your component.js file try to change the relative path from ../ to ./ instead.

If this doesn't work, then please add in your component.js into a pastebin or similar for us to see the code.

Thanks.

nagendran_r2
Explorer
0 Kudos

Hi Jacob,

Below is the component.js

I dont find any relative path

sap.ui.define([

   "sap/ui/core/UIComponent",

   "sap/ui/Device",

   "zhr/model/models",

   "zhr/controller/ListSelector",

   "zhr/controller/ErrorHandler"

], function(UIComponent, Device, models, ListSelector, ErrorHandler) {

   "use strict";

   return UIComponent.extend("zhr.Component", {

     metadata: {

       manifest: "json"

     },

     /**

      * The component is initialized by UI5 automatically during the startup of the app and calls the init method once.

      * In this method, the FLP and device models are set and the router is initialized.

      * @public

      * @override

      */

     init: function() {

       this.oListSelector = new ListSelector();

       this._oErrorHandler = new ErrorHandler(this);

       // set the device model

       this.setModel(models.createDeviceModel(), "device");

       // set the FLP model

       this.setModel(models.createFLPModel(), "FLP");

       // call the base component's init function and create the App view

      UIComponent.prototype.init.apply(this, arguments);

      // create the views based on the url/hash

      this.getRouter().initialize();

    },

    /**

     * The component is destroyed by UI5 automatically.

     * In this method, the ListSelector and ErrorHandler are destroyed.

     * @public

     * @override

     */

    destroy: function() {

      this.oListSelector.destroy();

      this._oErrorHandler.destroy();

      // call the base component's destroy function

       UIComponent.prototype.destroy.apply(this, arguments);

     },

     /**

      * This method can be called to determine whether the sapUiSizeCompact or sapUiSizeCozy

      * design mode class should be set, which influences the size appearance of some controls.

      * @public

      * @return {string} css class, either 'sapUiSizeCompact' or 'sapUiSizeCozy' - or an empty string if no css class should be set

      */

     getContentDensityClass: function() {

       if (this._sContentDensityClass === undefined) {

         // check whether FLP has already set the content density class; do nothing in this case

         if (jQuery(document.body).hasClass("sapUiSizeCozy") || jQuery(document.body).hasClass("sapUiSizeCompact")) {

           this._sContentDensityClass = "";

         } else if (!Device.support.touch) { // apply "compact" mode if touch is not supported

           this._sContentDensityClass = "sapUiSizeCompact";

         } else {

           // "cozy" in case of touch support; default for most sap.m controls, but needed for desktop-first controls like sap.ui.table.Table

           this._sContentDensityClass = "sapUiSizeCozy";

         }

       }

       return this._sContentDensityClass;

     }

   });

});

Former Member
0 Kudos

What about your index file?

It is trying to get from the wrong folder.

To doublecheck your bootstrap, do you have something similar to this

data-sap-ui-resourceroots='{"zhr": "./" }'

nagendran_r2
Explorer
0 Kudos

I dont have anything like that