cancel
Showing results for 
Search instead for 
Did you mean: 

dynamic coding of base url of odata service

Former Member
0 Kudos

Hello,

i wondering how to set dynamicly in ui5 app controller the base service url.

In TST QAL PRD systems this base url are different so during transports static coding of this base url service makes trouble.

For example

TST : http://s-zz.at:8000

QAL: http://s-cc.at:8002

How to resolve such case ?

Any dynamic variable could be used ?


Lucas

Accepted Solutions (0)

Answers (1)

Answers (1)

sreehari_vpillai
Active Contributor
0 Kudos

Lukaz,

You are not supposed to give the fully qualified URL to access the OData service. As yur UI app is running in the same system where the OData service is registered , you can provide the relative path alone ( like /sap/opu..../ProjectName as your service URL), which would not change through out the landscape .

Sree

Former Member
0 Kudos

I found it also by myself

You are right of course.

Lucas

sreehari_vpillai
Active Contributor
0 Kudos

cool - close the thread