Quantcast
Channel: SCN : Unanswered Discussions - SAP for Mobile
Viewing all articles
Browse latest Browse all 5512

Testing extended standard fiori application

$
0
0

Hi experts,

 

I have extended standard fiori application as mentioned in the http://scn.sap.com/docs/DOC-56440 document using fiori toolkit.While testing locally in eclipse I am getting the following error.

 

error404.JPG

 

My Component.js file of the extended project  have the following contents:-

 

 

jQuery.sap.declare("zcus.sd.salesorder.create.Z_SD_SO_CRE_18.Component");

// use the load function for getting the optimized preload file if present
sap.ui.component.load({
name: "cus.sd.salesorder.create.SD_SO_CRE", 
url: "/sap/bc/ui5_ui5/sap/SD_SO_CRE"

 

// provide parent project url
// we use a URL relative to our own component; might be different if
// extension app is deployed with customer namespace
});


cus.sd.salesorder.create.Component.extend("zcus.sd.salesorder.create.Z_SD_SO_CRE_18.Component", {
metadata: {
  version : "1.0",
  config : {
   "sap.ca.i18Nconfigs": {
    "bundleName":"zcus.sd.salesorder.create.Z_SD_SO_CRE_18.i18n.i18n"
   },
  
  },
 
 

  "sap.ca.serviceConfigs":[{
   name:"SRA017_SALESORDER_CREATE_SRV",
      masterCollection : "SalesOrders",
      serviceUrl : URI("Z_SD_SO_CRE_18/proxy/sap/opu/odata/sap/SRA017_SALESORDER_CREATE_SRV/")
      .directory(),
      isDefault :true,
      countSupported : true,
      useBatch : true,
      mockDataSource : jQuery.sap.getModulePath("zcus.sd.salesorder.create") + "/model/metadata.xml"    
  }] 
},

});

 

 

And my index.html file of Z_SD_SO_CRE_18 extended project have the following contents:-

 

<!DOCTYPE HTML>

<html>

<!-- IMPORTANT

This HTML file is meant for testing the application/component standalone, outside the Unified Shell.

Some integration functionality, personalization etc. will not be available when running standalone.

-->

<head>

<meta http-equiv="X-UA-Compatible" content="IE=edge" />

<meta name="viewport" content="width=device-width, initial-scale=1.0" />

<meta charset="UTF-8">

<title>Z_SD_SO_CRE_18</title>

<script id="sap-ui-bootstrap"

src="./resources/sap-ui-core.js"

data-sap-ui-libs="sap.m, sap.me"

data-sap-ui-theme="sap_bluecrystal"

data-sap-ui-xx-bindingSyntax="complex"

data-sap-ui-compatVersion="1.16"

data-sap-ui-resourceroots='{"zcus.sd.salesorder.create.Z_SD_SO_CRE_18": "./"}'>

</script>

<!-- Application launch configuration -->

<script>

    sap.ui.getCore().attachInitEvent(function () {

        var oComponentContainer = new sap.ui.core.ComponentContainer({

            height : "100%",

            name:"zcus.sd.salesorder.create.Z_SD_SO_CRE_18"

        });

        oComponentContainer.placeAt("content");

    });

</script>

</head>

<!-- UI Content -->

<body class="sapUiBody" id="content" role="application">

</body>

</html>

 

 

Please help me with this.

 

 

Thanks & Regards,

Lahari


Viewing all articles
Browse latest Browse all 5512

Trending Articles



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