COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: blackfly on 18 Dec 2006 10:17:10 PM

Title: function to get cognos server name (Report Studio)
Post by: blackfly on 18 Dec 2006 10:17:10 PM
hi,

I'd like to know if there's an existing function or macro which returns the cognos server name. Reason is that we'd like to dynamically generate the http path (http://servername/Cognos8/cgi-bin/...) in a report for multiple environments (development, test and production).

Thanks.
blackfly
Title: Re: function to get cognos server name (Report Studio)
Post by: MFGF on 19 Dec 2006 03:27:24 AM
Hi,

Yes there is - the ServerName() function.  Try it in a layout calculation in one of your Report Studio reports.

Best regards,

MF.
Title: Re: function to get cognos server name (Report Studio)
Post by: blackfly on 20 Dec 2006 07:54:39 PM
Thank you!

I can embed the ServerName() function in the html item.

Cheers!
blackfly