Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: [Forms / Applicationserver] TOOL_ENV.GETVAR does not return any value

Re: [Forms / Applicationserver] TOOL_ENV.GETVAR does not return any value

From: Heino Tiedemann <rotkaps_spam_trap_at_gmx.de>
Date: Fri, 09 Jun 2006 10:44:45 +0200
Message-ID: <e6bcds$1o80$1@newsreader.cw.net>


"sarvan" <ksarvanan_at_gmail.com> wrote:

> Heino Tiedemann wrote:

>> Hi There,
>>
>>
>> I'd like to read any systemvariables from Windows 2003 Server from
>> Oracle Forms.
>>
>> I have one machine with the Oracle-Forms-Developer und the
>> OC4J-Container runnung (my computer) and the following code works
>> fine:
>>
>> ,----
>> | -- HTTP-Server DocRoot
>> | TOOL_ENV.GETVAR('MY_HTTP_DOCROOT', v_htdocroot);
>> | message('DocRoot: '||v_htdocroot);
>> `----
>>
>> MY_HTTP_DOCROOT is a windows environment variable (set in the
>> Systemsettings, not Registry!).
>>
>>
>> Fine until here.
>>
>> Now the Problem:
>>
>> If I run that Forms-Application on an real Applicationserver (not the
>> Forms-Developer), that does not work.
>>
>> OOL_ENV.GETVAR('MY_HTTP_DOCROOT', v_htdocroot) doas not retrieve
>> anything. v_htdocroot is empty after that call. :-(
>>
>> Of course the environment is set (I called the windows funktion "set"
>> to be sure).
>>
>> Is there a way out?
>
>
> I guess there s a problem in the registry entry check wether the site's
> address is enterd as data value in the registry.

The Variable ist set by the Windows "SytemsSettings"-dialog, not in the registry. Just an environment variable.

> i guess u get me if
> not replace it with a sample page and try to call it.ur data shud be
> some thing like this http://domain:portno/repository.. check it

Sorry, my english ist maybe not so good to understand that.

Heino Received on Fri Jun 09 2006 - 03:44:45 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US