cancel
Showing results for 
Search instead for 
Did you mean: 

Fiori extension, component.js not found

Former Member
0 Kudos

Hello gurus,

I have problem with testing of fiori extension in sandbox.

Localy test.

I made leave request extension and now I am trying to test it localy. But when I click on

LEAVE REQUEST EXTIONSOON, only this blue screen appeared.

Here is project in eclipse.

There is a similar problem discussed on this forum, but it was not solved I think.

Can you help me.

Message was edited by: Michael Appleby

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

The parent project url is not maintained correctly. Pls check in your component.js. Here is a sample

jQuery.sap.declare("zhcm.emp.mytimesheet.Component");

sap.ui.component.load({

  name : "hcm.emp.mytimesheet",

  url : jQuery.sap.getModulePath("zhcm.emp.mytimesheet") + "/../hcm_ts_cre"

});

hcm.emp.mytimesheet.Component.extend("zhcm.emp.mytimesheet.Component", {

  metadata : {

  "customizing" :{

  "sap.ui.controllerExtensions" : {

  "hcm.emp.mytimesheet.view.S2" : {

  controllerName : "zhcm.emp.mytimesheet.view.S2Enhancement"

  },

  "hcm.emp.mytimesheet.view.S31" : {

  controllerName : "zhcm.emp.mytimesheet.view.S31Enhancement"

  },

  "hcm.emp.mytimesheet.view.S3" : {

  controllerName : "zhcm.emp.mytimesheet.view.S3Enhancement"

  }

  }

  },

  config : {

  "titleResource": "My TimeSheet",

  "name" : "My Timesheet", //F0397

  "sap.ca.i18Nconfigs" : {

  "bundleName" : "zhcm.emp.mytimesheet.i18n.i18n"

  }

  }

  }

});

Former Member
0 Kudos

Thank you.

But there is other problem.

After putting logon data, it crashed.

I think, there is problem with GET $metadata and linked to the service on SAP gateway.

It is trying to get metadata from localhost, but the service metadata are on SAP gateway.

Am I wrong ?

I have configured proxy in WEB.xml

Something like that :

   <context-param>

    <param-name>com.sap.ui5.proxy.REMOTE_LOCATION</param-name>

    <param-value>http://[HOST]:[PORT]/</param-value>

    </context-param>

Answers (1)

Answers (1)

Former Member
0 Kudos

This message was moderated.