Is there a method of getting Windows environment variable values into Dialogue Manager variables?
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
May 17, 2007, 09:30 AM
Alan B
The only way I know, and there must be a better one, is to use:
DOS SET > c:\settings.txt
and read the file with DM, picking out the ones you want.
You can also use DOS SET name > c:\settings.txt e.g. DOS SET TEMP > c:\settings.txt to pick up certain items.
Alan. WF 7.705/8.007
May 17, 2007, 09:53 AM
Francis Mariani
Alan B,
DOS SET > c:\settings.txt works for me. Thanks.
Interestingly, when SET is executed from a Windows CMD window, any existing User variables override the System environment variables. When SET is executed from WebFOCUS, the variables are the System variables with no override.
As well, attempting to retrieve one system variable with the command DOS SET TEMP > c:\settings.txt does not work on my Win XP PC.
Thank you.This message has been edited. Last edited by: Francis Mariani,
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
May 17, 2007, 10:27 AM
Alan B
Francis
I believe that's me being optimistic. I forgot that to do a DOS SET TEMP > c:xxx.xxx requires the extended command processor, probably not available in WF. I think it was doable in PC/Focus!
Alan. WF 7.705/8.007
May 17, 2007, 10:34 AM
Francis Mariani
Alan,
The normal DOS SET command works for me. This is the fex code I used to isolate the TEMP variable:
(2009/02/11 - modified the code: incorrectly coded the out-field-format as 'A' instead of 'A200'. Code tightening in v7.6 caused the FGETENV function to not return the correct TEMP directory. It should work now).This message has been edited. Last edited by: Francis Mariani,
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
May 17, 2007, 11:25 AM
Alan B
Knew there had to be a better way, the other is a bit of a kluge.
Alan. WF 7.705/8.007
May 17, 2007, 02:00 PM
FrankDutch
are these variable the the ones from the enduser or from the server? I must give this a try next week, this would give me some nice opportunities.
Frank
prod: WF 7.6.10 platform Windows, databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7 test: WF 7.6.10 on the same platform and databases,IE7
May 17, 2007, 02:08 PM
Francis Mariani
Server environment settings.
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