Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 2895

Re: Not able to execute Fiori ToolKit Extended application's into WebIDE

$
0
0

Hi Michal,

 

Thanks for your reply, i have copied the content from WebContent to root folder and removed the WebContent folder , now i am getting below error:

error after changing project structure.png

in imported project component.js file i can see below code:

 

jQuery.sap.declare("ui.s2p.mm.purchorder.approve.Z_FIORI_CO_APV.Component");

// use the load function for getting the optimized preload file if present
sap.ui.component.load({
name: "ui.s2p.mm.purchorder.approve", 
url: jQuery.sap.getModulePath("ui.s2p.mm.purchorder.approve.Z_FIORI_CO_APV") + "/../MM_PO_APV" // provide parent project url
// we use a URL relative to our own component; might be different if
// extension app is deployed with customer namespace
});

 

jQuery.sap.require("ui.s2p.mm.purchorder.approve.Z_FIORI_CO_APV.util.COFormatter");

ui.s2p.mm.purchorder.approve.Component.extend("ui.s2p.mm.purchorder.approve.Z_FIORI_CO_APV.Component", {
metadata: {
  version : "1.0",
  config : {
   "sap.ca.i18Nconfigs": {
    "bundleName":"ui.s2p.mm.purchorder.approve.Z_FIORI_CO_APV.i18n.i18n"
   },
   "sap.ca.serviceConfigs" : [ {
    name : "ZFIORI_MM_GBAPP_POAPPROVAL_SRV",
    serviceUrl : "/sap/opu/odata/sap/ZFIORI_MM_GBAPP_POAPPROVAL_SRV;mo",
    isDefault : true
   } ]
  },
 
  customizing: {
   "sap.ui.controllerExtensions": {
    "ui.s2p.mm.purchorder.approve.view.S3": {
     controllerName: "ui.s2p.mm.purchorder.approve.Z_FIORI_CO_APV.view.S3Custom",
    },
   },

   "sap.ui.viewReplacements": {
    "ui.s2p.mm.purchorder.approve.view.S4": {
     viewName: "ui.s2p.mm.purchorder.approve.Z_FIORI_CO_APV.view.S4Custom",
     type: "XML",
    },

    "ui.s2p.mm.purchorder.approve.view.S3": {
     viewName: "ui.s2p.mm.purchorder.approve.Z_FIORI_CO_APV.view.S3Custom",
     type: "XML",
    },
   },

   "sap.ui.viewModifications": {
    "ui.s2p.mm.purchorder.approve.view.S3": {
     "POInformationPaymentTerm": {
      "visible": false
     }
    }
   }

  }  
}
});

 

 

I have replaced the below code:

 

sap.ui.component.load({

name: "ui.s2p.mm.purchorder.approve", 

url: jQuery.sap.getModulePath("ui.s2p.mm.purchorder.approve.Z_FIORI_CO_APV") + "/../MM_PO_APV" // provide parent project url

// we use a URL relative to our own component; might be different if

// extension app is deployed with customer namespace

});

 

with code (as i have seen in WebIDE projects)

 

sap.ui.component.load({
name: "ui.s2p.mm.purchorder.approve",

// Use the below URL to run the extended application when SAP-delivered application is deployed on SAPUI5 ABAP Repository
url: "/sap/bc/ui5_ui5/sap/MM_PO_APV"

// we use a URL relative to our own component
// extension application is deployed with customer namespace
});

 

 

but still getting same error.

 

now project sturcture is:

Structure after removing webcontent folder.png

 

Regards,

Trilochan


Viewing all articles
Browse latest Browse all 2895

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>