Focal Point
[SOLVED] Setting Global Variables on Server

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/699106223

December 21, 2009, 12:57 PM
fatboyjim
[SOLVED] Setting Global Variables on Server
Hi,

Does anyone know where the location of the files are for setting up global variables (variable available for all applications/projects) for Servlet calls? Currently we are trying to migrate from CGI calls to Servlet and it's not picking up the global variables that were setup in the CGI calls.

Thanks in advance.

Best Regards,

Jimmy Pang

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


DEV: WF 7.6.10
TEST: WF 7.6.10
PROD: WF 7.6.10
MRE: WF 7.6.4
OS/Platform: Windows
Dev Studio: WF 7.7
Output: HTML, EXCEL, PDF, GRAPH, LOTUS, CSV
December 21, 2009, 01:56 PM
GinnyJakes
The file is site.wfs in /WebFOCUS/ibi/webfocus762/client/wfc/etc. You can get to it from Client Console: Configuration/Custom Settings.

You can also search this forum for site.wfs. There have been many posts regarding this file.


Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google
December 21, 2009, 02:45 PM
fatboyjim
Thanks Ginny.

I have located the file, but I was not able to find the format to place the variable value into it.

I have seen some posts that shows
WORPUSER

UID=&WORPUSER
UPASS=&WORPPASS
IBIC_user=&WORPUSER


IBIMR_user

UID=&IBIMR_user
IBIC_user=&IBIMR_user
IBIMR_user=&IBIMR_user
UPASS=&IBIMR_pass



UID=UNKNOWN
IBIC_user=UNKNOWN
UPASS=UNKNOWN



I tried to do the same,
ie.
GLOBVAR = 'valueOfGlobalvar'


but when I test it out, it still prompts me for a value for the variable.

Is there a sample of a global variable that I can modify? It doesn't look like these site.wfs are using WebFOCUS code.

Best Regards,

Jimmy Pang


DEV: WF 7.6.10
TEST: WF 7.6.10
PROD: WF 7.6.10
MRE: WF 7.6.4
OS/Platform: Windows
Dev Studio: WF 7.7
Output: HTML, EXCEL, PDF, GRAPH, LOTUS, CSV
December 21, 2009, 02:52 PM
GinnyJakes
If you truly want a server global variable, i.e. a double amper variable, put them in edasprof.prf which is here:

/WebFOCUS/ibi/srv76/wfs/etc


Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google
December 21, 2009, 03:08 PM
Francis Mariani
Jimmy,

You can add it to edasprof.prf by editing the file via the WebFOCUS Server Console: http://your-server:8121/webconsole?IBIS_auth=out > Workspace > Configuration > Configuration Files > Server Profiles > Edit (or by editing C:\ibi\srv76\wfs\etc\edasprof.prf)

Add something like this line to the very end of the file:

-SET &&GLOBAL1 = 'EVERYWHERE';

I use && variables because, for some reason & variables don't get created.


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
December 22, 2009, 08:29 AM
fatboyjim
Thanks Ginny and Francis.
That did the job.


DEV: WF 7.6.10
TEST: WF 7.6.10
PROD: WF 7.6.10
MRE: WF 7.6.4
OS/Platform: Windows
Dev Studio: WF 7.7
Output: HTML, EXCEL, PDF, GRAPH, LOTUS, CSV