on 10-19-2017 3:24 PM
How can i tell if my UI5 application is running on SAP or on my local development environment localhost (tomcat)
when i am in development mode i want my target service urls to be specific
var sServiceUrl = "http://myserver:8010/sap/opu/odata/sap/ZPM_HD_SRV?sap-client=130";
but when from server to ge generic:
var sServiceUrl = "../../../../opu/odata/sap/ZPM_HD_SRV/";
if (window.location.hostname == "localhost") {
serviceurl= "../proxy" + serviceurl;
} else {
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Yossi,
On local you can use as
var sServiceUrl = "proxy/http/myserver:8010/sap..................................;
on server/launchpad use
var sServiceUrl = "/sap/opu/odata/sap/ZPM_HD_SRV"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
24 | |
11 | |
9 | |
7 | |
5 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.