Skip to Content

Can't run fiori app MyAccounts extension from WEBIDE

I am trying to create an extension project myaccounts from sap ui5 abap repository.
But getting the following console message
'failed to load 'sap/cus/crm/lib/reuse/library-preload'

consoleerror.png (199.9 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Feb 11, 2017 at 09:23 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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