Quantcast
Channel: SCN : Unanswered Discussions - SAP Fiori
Viewing all articles
Browse latest Browse all 1879

Extended Fiori My_Contact App is not working, Component.js not found.

$
0
0

Hi Experts,

 

I am fairly new to SAP Fiori and trying to extend the My_contact app  using Eclipse Juno.

Following the doc : http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/20dbf542-f3e7-3110-a6b8-ebb96b57c4e8?QuickLink=index&…

Purpose of extension: Just trying to hide the Notes field from Standard contact app.

I have extended the project and trying to test it on local system . It shows component.js not found.

 

Please find the following screen shots and code for more clarification.

 

eclipse1.PNG

 

Component.js  code:

 

jQuery.sap.declare("cus.crm.mycontacts.ZMyContact_11Extension.Component");

 

 

// use the load function for getting the optimized preload file if present

sap.ui.component.load({

  name: "cus.crm.mycontacts", 

  url: jQuery.sap.getModulePath("cus.crm.mycontacts.ZMyContact_11Extension") + "/../../CRM_MYCONT"

});

 

 

 

 

this.cus.crm.mycontacts.Component.extend("cus.crm.mycontacts.ZMyContact_11Extension.Component", {

  metadata: {

  version : "1.0",

  config : {

  "titleResource": "MY_CONTACTS",

  "sap.ca.i18Nconfigs": {

  "bundleName":"cus.crm.mycontacts.ZMyContact_11Extension.i18n.i18n"

  },

 

  },

 

 

 

  "sap.ca.serviceConfigs":[{

  "name": "CRM_BUPA_ODATA",

     "masterCollection" : "mycontacts",

     "serviceUrl" : URI("/ZMyContact_11Extension/proxy/sap/opu/odata/sap/CRM_BUPA_ODATA/")

     .directory(),

     "isDefault" :true,

     "countSupported" : true,

     "useBatch" : true,

     "mockDataSource" :jQuery.sap.getModulePath("cus.crm.mycontacts.ZMyContact_11Extension") + "/model/metadata.xml" 

  } ]

  },

 

  customizing: {

 

  "sap.ui.viewModifications":{

  "cus.crm.mycontacts.view.S3":{

  "notes":{

  "visible" : false

  }

  }

  }

  }

 

 

});

----------------------------------------------------

Index.html code:

 

<!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>ZMyContact_11Extension</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='{"cus.crm.mycontacts.ZMyContact_11Extension": "./"}'>

</script>

<!-- Application launch configuration -->

<script>

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

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

            height : "100%",

            name:"cus.crm.mycontacts.ZMyContact_11Extension"

        });

        oComponentContainer.placeAt("content");

    });

</script>

</head>

<!-- UI Content -->

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

</body>

</html>

 

....................................................

Browser Debug  screen shot:

 

2.PNG

 

Have check the st22 and /0/iwfnd/error_log .. No error log is generating.

 

Thanks n Regards

Ritu


Viewing all articles
Browse latest Browse all 1879


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