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     [CLOSED] Environmental Variables

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Environmental Variables
 Login/Join
 
Member
posted
I'm creating dynamic URL by passing environmental variables so that when we change servers (Ex from Dev --> Test --> Stage --> Prod) we need not to change any code/URL. Below is the piece of code i wrote in JavaScript and i'm storing server name and environment variable name in temporary variables to pass in final URL.

var server_name = "!IBI.AMP.SERVER_NAME;";
var env_name = "!IBI.AMP.IBIC_server;";
var url = strPath+"://"+server_name+"/ibi_apps/WFServlet?IBIF_ex=xyc.fex&|IBIC_server="+env_name+"&|IBIAPP_app=dm_master";

When i run the URL it gives me error message that IBI is undefined. Then i performed a simple test to check if environment variable will work in WF 7.7 version. I issued below command in WF 7.7 version's procedure.

-TYPE &IBIAPP_app;
-TYPE &IBIC_server;

The above command is not working in WF 7.7 version where as I gave same command in WF 7.6.9 and 7.1.4 version and it works perfectly fine.

1. Does the above environment is not supported in WF 7.7 version?
2. Is there any alternative solution to get these values in temporary variable in HTML and procedureso that i can pass it URL?

Thanks,
Tyson.

This message has been edited. Last edited by: Kerry,


WebFOCUS 7.7
Windows, all output
 
Posts: 7 | Registered: July 19, 2010Report This Post
Virtuoso
posted Hide Post
Tyson,

I don't think it would have had the correct result in earlier versions without any customisation of the configuration. What you should change is: in the site specific config part of the webfocus admin console add the following two lines:
<set>IBIC_server(pass)
<set>IBIAPP_app(pass)
My guess is that these settings were active in your previous release, but that they have not been set (yet) in the new config.


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
 
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007Report This Post
Member
posted Hide Post
Thanks for the quick response...i will work with my admin to implement the same.


WebFOCUS 7.7
Windows, all output
 
Posts: 7 | Registered: July 19, 2010Report 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     [CLOSED] Environmental Variables

Copyright © 1996-2020 Information Builders