Skip to Content
avatar image
Former Member

Deploy UI5 application from BSP to Fiori Launchpad problem !!

Hi all ,

I'm trying to deploy a UI5 application from BSP to Fiori LaunchPad but I'm facing a problem coz my app has some external resource which defined in Index.html .

 data-sap-ui-resourceroots='{
      "mc": "./",
      "commonController": "../../../sap/bc/bsp/salm/resources/commonController" ,
      "commonFragments": "../../../sap/bc/bsp/salm/resources/commonFragments", 
       "control": "../../../sap/bc/bsp/salm/resources/control"
       }'

Error !

While Deploying on FLP ignore Index.html and use FioriLaunchpad.html , I have to defined those external resource in Manifest.js

this is what I did

Same problem again !

Caused by: Error: found in negative cache: 'mc/controller/BaseController.js' from undefined/mc/controller/BaseController.js: Error: failed to load 'commonController/Category.js' from /sap/bc/ui5_ui5/ui2/ushell/resources/~20171002144600~/commonController/Category.js: 404 - NOT FOUND

any suggestion please !

Best Regards

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Nov 27, 2017 at 02:52 PM

    Hi Ramzi,

    You need to define the views/resources in component.js to deploy the app successfully in the FIORI.

    As you defined the resources in manifest.json is correct but you need to load the file in the component.js file.

    Then FIORI can load all your views and controllers very successfully.

    Thanks,

    Deepak Raj.

    Add comment
    10|10000 characters needed characters exceeded

    • You need to add in the component.js with the parameter

      "includes":[].

      below is the example:

      jQuery.sap.declare("sap.sample.web.Component");

      sap.ui.core.UIComponent.extend("sap.sample.web.Component",{

      metadata: {

      "includes":["style/stylesheet.css"],

      routing: {

      config: {

      viewType: "XML",

      viewPath: "sap.sample.web.view",

      targetControl: "appid",

      clearTarget: false,

      transition: "slide"

      },

      If you face any issue please contact me at deepu.9291@gmail.com

      Thanks,

      Deepak Raj.