Skip to Content

Deploying Standard and Extended app together

Hello Experts,

For demo purpose I am deploying standard and extended "My Team Calendar" apps together (in a same catalog for users).

I am encountering a strange behaviour.

My extended app's only extension is replacing the standard OData service by a custom oData service.

This is how I did it. (generated by WebIDE)

this.hcm.myteamcalendar.Component.extend("ZHCM_TEAM_CALExtension.Component", {
  metadata: {
  version: "1.0",
  config: {
  "sap.ca.serviceConfigs": [
  {
  name: "HCM_TEAM_CALENDAR_SRV",
  serviceUrl: "/sap/opu/odata/sap/ZFIORI_TEAM_CALENDAR_SRV/",
  isDefault: true,
  mockedDataSource: "./model/metadata.xml"
        }
    ]
  },
  customizing: {}
  }
});

Problem:

When I load the Fiori Launchpad and click on Standard "MyTeam Calendar" app, it uses the standard OData service. No problems.

When I click on Extended "MyTeam Calendar" app, it uses the custom OData service. No problems.


Now, if I click on Standard app again, it starts using the custom OData service. Am I doing anything wrong here?


Thanks

Krishna

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Apr 01, 2015 at 11:45 PM

    it could be because of the same model name used in the extended project

    1. config: {
    2. "sap.ca.serviceConfigs": [
    3. {
    4. name: "HCM_TEAM_CALENDAR_SRV",

    Change the name to ZHCM_TEAM_CALENDAR_SRV, and see if it helps..

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.