on 05-26-2015 3:12 AM
Hi All,
I'm trying to retrieve the SID of the current BO server that my design studio application is run against.
I tried using xxx.getInfo().system, but this returns the CUID.
My BO administrator has set the CUID for all our BO servers to be one and the same in all systems in the BO landscape (DEV, QA, PROD).
So, is there an alternative to retrieving the SID? I just need some way to identify which server my design studio application has been executed on.
Hi an alternative is to create a small SDK to get the URL + portnumber from the current session. I assume the different systems have each their own hostname and/or portnumber
the SDK could look like this :
sap.designstudio.sdk.Component.subclass("com.mycompanyname.sdkcomponents.applicationInfo", function() {
var currenthostname = undefined;
var currenturl = undefined;
var that = this;
this.currenthost=function(e){if(e===undefined){return currenthostname;}else{return this;}};
this.URL=function(e){if(e===undefined){return currenturl;}else{return this;}};
this.init = function() {
currenturl = location.href;
currenthostname = location.hostname;
that.firePropertiesChanged(["currenthost", "URL"]);
};
});
with a standard ZTL script you can retrieve the hostname and deduce the server.
best regards,
Jeroen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Yes, I think this is certainly a legitimate requirement and it has indeed been requested before: How to get Backend-system-info?
You may wish to consider posting this request in the Design Studio Idea Place.
Regards,
Mustafa.
User | Count |
---|---|
87 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.