12-02-2016 5:57 AM - edited 01-21-2024 9:53 PM
Hello
In the Component.js file, add the library path between the declaration line and the component load line as :
jQuery.sap.declare(...);
(function() { jQuery.sap.registerModulePath("sap.cus.crm.lib.reuse", "/sap/bc/ui5_ui5/sap/crm_lib_reuse/sap/cus/crm/lib/reuse"); }());
// use the load function for getting the optimized preload file if present
sap.ui.component.load({....
Best regards
Emmanuel Da Costa
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
still i can not run my extended App in WebIDE, althogh I take this Information for my Quellcode:
jQuery.sap.declare("de.custo.z_extension.Component");
// https://archive.sap.com/discussions/message/16382862#16382862 -> external library...
(function() {
jQuery.sap.registerModulePath("com.company.ui5app.product", "/sap/bc/ui5_ui5/companye/product");
}());
jQuery.sap.require("com.company.ui5app.product");
// use the load function for getting the optimized preload file if present
sap.ui.component.load({
name: "com.company.ui5app.product",
// Use the below URL to run the extended application when SAP-delivered application is deployed on SAPUI5 ABAP Repository
url: "/sap/bc/ui5_ui5/companye/product"
// we use a URL relative to our own component
// extension application is deployed with customer namespace
});
may sby of you can give me an information, why i still get this strange "component.js" Console-error and app is not loaded:
Uncaught Error: failed to load 'de/custo/z_extension/Component.js' from ./Component.js: Error: failed to load 'com/company/ui5app/product/Component.js' from /sap/bc/ui5_ui5/companye/product/Component-dbg.js
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.