cancel
Showing results for 
Search instead for 
Did you mean: 

Use two OData services in the same fiori application

Former Member
0 Kudos

Hi,

I am extendind a standard fiori application which is based on a standard odata service.Requirement is to add additonal functionality to the application but it it is based on another custom Odata service .

Is it possible to integrate two Odata services in the same fiori application and call the methods accordingly.

Regards

Radhika

Accepted Solutions (0)

Answers (1)

Answers (1)

SergioG_TX
Active Contributor
0 Kudos

yes you may have more than 1 oData Service where you read data from. The one thing to keep in mind would be to know how to distinguish the data from the 2 services in case you need to post transactions back to the service. Further, if you have scenarios such as a grid which is fed from one odata model and some controls in it such as a drop down, then make sure your model contains both end points.. you may be able to create named models or have multiple endpoints on a joint model.. 

long story short yes you may be able to have more than 1 service in an application.

Former Member
0 Kudos

Hi Sergio,

Thank you .

My question is more related to fiori architecture as such.In the fiori application there is a configuration.js file which has the refrence to the service URL.Incase i have to add another Odata service reference where and how do i add it.

Regards

Radhika

SergioG_TX
Active Contributor
0 Kudos

it looks like it should be fine as the ServiceList object is an array. You should be able to enter a new serviceList Item object next tot he current one and then be able to access it via its name. I am not sure where the exact documentation for it may be but by looking at the object then it should.

Former Member
0 Kudos

Hi Sergio,

The Configuration.js file is part of orginal component and is not part of extended project.

In the extensions i do not see any option to add a new Odata service though there is an option to replace the service.

Regards

Radhika