Hi,
We have a TeamSite 7.4.0 instance on windows.
We are using modeler workflows.
In custom instantiation.cfg file we are using the callserver methods.
The code snippet looks like:
var server = window.location.hostname;
IWDatacapture.callServer("http://"+server+"/iw-cc/gl/ajax?data=submission",params);
This works OK when TeamSite is on port 80.
However this will not work for clients who installed TeamSite on non standard port say (8088). since then the call will be required to be
IWDatacapture.callServer("http://"+server+":8088" + "/iw-cc/gl/ajax?data=submission",params);
However this is an issue because then we cannot generalize the script and will not work with all the clients because of the hardcoded port.
So my question is how to get the port on which the teamsite server is runnning. Is there a something like
var server = window.location.hostname;
var port = window.location.port_number;???
Please let me know if you need more info.
Also, another similar situation...
We are using modeler workflows.
In the workflow cgi task we are calling externaltask URI as
http://$IW_SERVER/iw-cc/.../externaltaskThis works OK when TeamSite is on port 80.
However this will not work for clients who installed TeamSite on non standard port say (8088). since then the call will be required to be
http://$IW_SERVER:8088/iw-cc/.../externaltaskHowever this is an issue because then we cannot generalize the script and will not work with all the clients because of the hardcoded port.
So my question is how to get the port on which the teamsite server is runnning. Is there a predefined variable like
$IW_PORT to know the port on which TeamSite server is running? where $IW_PORT should return 8088.
Please let me know what is the variable to be used for the port.
You may also have better suggestions to get the port number in the modeler workflow. Please do not hesitate to share that.
Thanks
-Gautam