cancel
Showing results for 
Search instead for 
Did you mean: 

Fetching Service URL based on System

Former Member
0 Kudos

Hi All,

We developed UI5 app in development system (for ex: PGX). So we used service URLs pointing to PGX system. But later we transported the app to another system (for ex: PGQ) for testing. But still the app refers to PGX data as we used absolute URLs. So, is it possible to get the URLs dynamically based on the system?

Thanks & Regards,

Seshu

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

How about using relative URL's instead of absolute.

Former Member
0 Kudos

Hi

Yes, we should use relative URLs . But How it will fetch the data using relative URL. We should provide entire path to get the data, shouldn't we? . Is there any code to get the server host and port number based on system?

Thanks

Seshu