on 10-08-2015 5:52 PM
We are trying to extend the standard SAP HCM People Profile app.
We are following the DOCUMENT from SDN.
After creating an Extension project on WebIDE and seeing the following screen and run the application
Instead of the application showing up (as in the document), we are getting a BLANK screen with the following errors in the console.
Any help is appreciated.
- PC
Hello,
This is happening because people Profile app and Employee look up apps are dependent on common lib. So when you try to extend, it is unable to fetch the lib.
To overcome this you need to mention following piece of code in Component.js file.
(function() {
jQuery.sap.registerModulePath("sap.hcm.lib.common", "/sap/bc/ui5_ui5/sap/hcm_common/sap/hcm/lib/common/");
}());
In the Component.js of the extension project, so that it will look like this:
jQuery.sap.declare("hcm.people.profile.HCM_PEP_PROFILEExtension.Component");
(function() {
jQuery.sap.registerModulePath("sap.hcm.lib.common", "/sap/bc/ui5_ui5/sap/hcm_common/sap/hcm/lib/common/");
}());
// use the load function for getting the optimized preload file if present
sap.ui.component.load({..... etc
....
We have to specifically mention the location of common file. Hope this helps.
Kind Regards,
Faiza
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Are you able to run the standard Fiori app from the WEB IDE?
Best regards,
Maarten
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.