Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     How can you tell what server your report ran on?

Read-Only Read-Only Topic
Go
Search
Notify
Tools
How can you tell what server your report ran on?
 Login/Join
 
Guru
posted
Is there any FOCUS code that will tell you want sever your report ran on? If you run '? STYLE' BASEURL will tell you the server name but I don't know how you can get that value into a variable.
 
Posts: 406 | Location: Canada | Registered: May 31, 2004Report This Post
Expert
posted Hide Post
Will &FOCEXURL help? The value of that system variable on my laptop is
 /ibi_apps/WFServlet?IBIF_webapp=/ibi_apps&IBIC_server=EDASERV
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Guru
posted Hide Post
I wish it did but it does not. I need the 'http://servername/' part of the URL so that I can figure out which server the reports are on.

I don't know if this helps but the reports are being called by a self-server application and fex files are located on the app path.
 
Posts: 406 | Location: Canada | Registered: May 31, 2004Report This Post
Virtuoso
posted Hide Post
Add the following code to the SITE.WFS WebFOCUS Client configuration file:

<SENDVAR>
WEBSERV=&SERVER_NAME
WEBPORT=&SERVER_PORT
<ENDSENDVAR>

The &SERVER_NAME contains the server name to which the report request is sent to. For example, if the URL for your WebFOCUS server is http://me.myself.com/ibi_apps/... then the value of &SERVER_NAME is 'me.myself.com'. The SENDVAR section will make a variable called &WEBSERV on the WebFOCUS Server to be used in report requests. &SERVER_PORT contains the port number which the Web Server is listening on.

I did a search for 'SERVER_NAME' on IBI's Tech Support web site and found this information.

Do a search on the internet for CGI Environment Variables for a list of other variables that you can get at with this technique.
 
Posts: 995 | Location: Gaithersburg, MD, USA | Registered: May 07, 2003Report This Post
Expert
posted Hide Post
Here's one solution:

In your parameter screen form, you could have a hidden text input called WEBSERVER, and load it with the following JavaScript:

<body onLoad="document.forms[0].WEBSERVER.value = document.location.hostname;">
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Virtuoso
posted Hide Post
FYI, the variable HTTP_HOST will also get you the host name of your server.

<sendvar>
HTTPSERV=&HTTP_HOST
<endsendvar>
 
Posts: 995 | Location: Gaithersburg, MD, USA | Registered: May 07, 2003Report This Post
Expert
posted Hide Post
Great technique, Mickey.
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Guru
posted Hide Post
Sweeeaaat,
Thanks Mickey.
Was trying to set those variables before but I was doing it to the server site.wfs file and nothing was happening. I didn't even think to try it on the client.
 
Posts: 406 | Location: Canada | Registered: May 31, 2004Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     How can you tell what server your report ran on?

Copyright © 1996-2020 Information Builders