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

Re: 【Extending Fiori App Error】Opportunity can't be displayed in Custom Opportunity App after loading

$
0
0

Hi Jamie,

 

Thank you for your response.

I've checked to the network tab.

The one error in network tab is 'Component-preload.js is not found'.

But I don't need to create a Component-preload.js file in case of this Extending App.

I only set to add the code in Component.js & specific view xml(S3&S4&S5.view.xml) file.

Do I understand correctly?

 

-Network tab-

network_tab.png

-Component.js-

 

jQuery.sap.declare("zcus.crm.opportunity.Component");
// use the load function for getting the optimized preload file if present
sap.ui.component.load({
 name: "cus.crm.opportunity",  
 url: jQuery.sap.getModulePath("zcus.crm.opportunity") + "/../CRM_OPPRTNTY" // 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.crm.opportunity.Component.extend("zcus.crm.opportunity.Component", {
 metadata: {  version : "1.0",  config : {   "sap.ca.i18Nconfigs": {    "bundleName":"zcus.crm.opportunity.i18n.i18n"   },               "sap.ca.serviceConfigs": [{              name: "CRM_OPPORTUNITY",              masterCollection : "Opportunities",              serviceUrl: "/sap/opu/odata/sap/ZCRM_OPPORTUNITY_SRV/",              isDefault :true,              countSupported : true,        useBatch : true,        mockDataSource : jQuery.sap.getModulePath("zcus.crm.opportunity") + "/model/metadata.xml"         }]  },  customizing: {  "sap.ui.viewExtensions": {   "cus.crm.opportunity.view.S5": {    "opportunityCreateContentBottomExtension": {     className: "sap.ui.core.Fragment",     fragmentName: "zcus.crm.opportunity.view.opportunityCreateContentBottomExtensionCustom",     type: "XML",    },   },   "cus.crm.opportunity.view.S4": {    "opportunityEditContentBottomExtension": {     className: "sap.ui.core.Fragment",     fragmentName: "zcus.crm.opportunity.view.opportunityEditContentBottomExtensionCustom",     type: "XML",    },   },   "cus.crm.opportunity.view.S3": {    "opportunityInfoTabContentBottomExtension": {     className: "sap.ui.core.Fragment",     fragmentName: "zcus.crm.opportunity.view.opportunityInfoTabContentBottomExtensionCustom",     type: "XML",    },   },  },  }   
 }
});

Regards,

Yuki


Viewing all articles
Browse latest Browse all 8065

Trending Articles



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