WebForms - Accessing Environment Variable on a Windows Client

Hi. We access a Windows Environment Variable using Client-Server Forms 6i. We do this as follows:
Tool_Env.GetVar('ALLUSERSPROFILE', myPath);
message(myPath);This returns the value 'c:\documents and settings\all users' on Windows XP.
This returns the value 'c:\programdata' on Windows 7.
We'd like to keep similar logic in this form once it's migrated to Web Forms. Is there a way to access this 'allusersprofile' environment variable (or any environment variable to determine whether the user is XP or Win7) from a web form running our UNIX server? Maybe somehow using WebUtil or something?
Any suggestions would be greatly appreciated. Thanks.

WebUtil enable your form then do this:
message (CLIENT_WIN_API_ENVIRONMENT.Get_Environment_string('allusersprofile'));To get the Windows version, do this:
message(CLIENT_WIN_API_ENVIRONMENT.Get_Windows_Version);.
Edited by: Michael Ferrante on May 23, 2012 5:06 PM

Similar Messages

  • Reading locale system properties like set-variables of a windows Client

    Hello,
    is there a possibility to read locale system properties like set-variables of a windows Client?
    We want to read path-Info and user-info. Can I perhaps user javascript?
    Best regards
    Oliver Prodinger

    Hi Oliver,
    This code will work (assuming the client approves running of ActiveX)
    <html>
    <script>
      var shell = new ActiveXObject("WScript.Shell");
      var env = shell.Environment("process");
      alert(env("COMPUTERNAME"));
      alert(env("USERNAME"));
    </script>
    </html> 
    You can't really run it from WD, but what you can do is run this code from a portal component (DynPage/JspDynPage) that is running in the same page as your WD application and pass data by using portal eventing.
    The portal component iview can have size of 1 pixel so it won't be seen...
    Regards,
    Omri

  • Accessing environment variables in PL/SQL??

    I have two oracle schemas; myenv1 and myenv2. They are both exact copies from each other except for the fact that one is my "developement" environment and the other my "production" environment.
    So in each of them I have some packages with PL/SQL code.
    I'd like to have an environment variable called PLATFORM (maybe not the best name) that should have the value "devel" in one schema and the value "prod" in the other schema. And I'd like to be able to access this variable in my PL/SQL code so I can slightly change some code or conditionate some code to the production environment only... or stuff like that.
    Does anyone know how to do that? (where and how to configure the env. variable)
    Any help will be most appreciated.
    Thanks!

    but I'm using the same 'current_user' in both schemas... is there other values I can get with sys_context ?? maybe there's one that would do it... but i think it's not 'current_user' It should be. Consider:
    SQL> show user
    USER is "SCOTT"
    SQL> create or replace function show_user return varchar2
      2  as
      3  begin
      4    return sys_context('userenv','current_user');
      5  end show_user;
      6  /
    Function created.
    SQL> select show_user from dual;
    SHOW_USER
    SCOTT
    SQL> grant execute on show_user to test;
    Grant succeeded.
    SQL> connect test/test
    Connected.
    SQL> select scott.show_user from dual;
    SHOW_USER
    SCOTT

  • Environment Variables for Visual Basic Clients

    How does one set the environment variables when writing clients in Visual Basic.
    I would like the set the variables TUXDIR, WSNADDR etc at runtime, instead of
    setting them in the Control Panel
    Thanks

    Hello,
    I don't know too much about Visual Basic, but if you can bind to the Tuxedo C
    functions from VB I'd suggest you simply call the tuxputenv() function a couple
    of times to setup the environment for your process.
    Hope this helps,
    /Per
    "Gaurang" <[email protected]> wrote:
    >
    How does one set the environment variables when writing clients in Visual
    Basic.
    I would like the set the variables TUXDIR, WSNADDR etc at runtime, instead
    of
    setting them in the Control Panel
    Thanks

  • How to access oracle R12 applications from windows client

    Hi All,
    I installed R12 oracle applications on Linux through VMWare and every thing was fine now. My database listener, database and applications are up and running. I installed Java and Mozillla and established a soft link on LInux but was not able to access oracle applicaitons from Uniix box. I was seeing if i can do it from windows client. Mine is windows vista and i pinged the ipaddress and its connecting but was not able to access applications from windows client and also from linux.
    Can any one help me accessing applications from windows client and unix box

    Hi;
    I installed R12 oracle applications on Linux through VMWare and every thing was fine now. My database listener, database and applications are up and running. I installed Java and Mozillla and established a soft link on LInux but was not able to access oracle applicaitons from Uniix box. I was seeing if i can do it from windows client. Mine is windows vista and i pinged the ipaddress and its connecting but was not able to access applications from windows client and also from linux.
    Can any one help me accessing applications from windows client and unix box1. Be sure you can ping your linux from your client
    2. Be sure your selinux and firewal disable on linux machine
    3. Add your IP and hostaname to your windows C:\WINDOWS\system32\drivers\etc\hosts file
    4. Add your url to your trusted site on windows
    5. Use IE7 or check below note to can use certified browswer and access EBS
    Recommended Browsers for Oracle E-Business Suite Release 12 [ID 389422.1]
    Regard
    Helios

  • Accessing environment variables

    Good morning,
    I have an implementation of Oracle Application Server 10G using a Shibboleth Service Provider (SP) 2.1 for SSO authentication. The problem I am facing now is to accessing with APEX the environmental variables created by the SP. In my tests I used PHP and everything is working well. However with APEX I only have access to a very limited group of environment variables. Anybody have a suggestion or idea on how to solve this problem?
    The variable I need is "Login".
    Thank you very much.
    hugo

    Hello,
    Take a look at this thread, where I answer a similar problem -
    Re: Unable to access external HTTP Headers
    Hope this helps,
    John.
    Blog: http://jes.blogs.shellprompt.net
    Work: http://www.apex-evangelists.com
    Author of Pro Application Express: http://tinyurl.com/3gu7cd
    REWARDS: Please remember to mark helpful or correct posts on the forum, not just for my answers but for everyone!

  • Access environment variables

    Hi,
              I'm running WebLogic 5.1 sp12 with an Apache 1.3.27 web server.
              Apache sets an environment variable ('REDIRECT_URL') upon occurence of
              a 40x error. How do I access such an environment variable from my jsp
              page? Thanks - Dave
              

              [email protected] (D. Alvarado) wrote:
              >Hi,
              > I'm running WebLogic 5.1 sp12 with an Apache 1.3.27 web server.
              >Apache sets an environment variable ('REDIRECT_URL') upon occurence of
              >a 40x error. How do I access such an environment variable from my jsp
              >page? Thanks - Dave
              Hi Dave,
              Hope this link will help you.
              http://developer.java.sun.com/developer/JDCTechTips/2001/tt1204.html#tip1
              Prema
              SIP Technologies & Exports Ltd., India
              

  • How to access environment variables from pluggable destination?

    Hi,
    I'm trying to create a java puggable destination for reports. Everything is working fine.
    I want to access reports environment variables from the java code (like REPORTS_PATH and other new variables that I want to create), but I can't find anything about this in the java API documentation.
    I want to use environment variables instead of destination properties (those I can easily access), because I want to be able to change context using env_id.
    Any ideas?
    Thanks,
    Luis

    I'm using Oracle Application Server Version 10.1.2.0.2
    Thanks

  • How to access environment variables from Oracle Forms

    Hi,
    Any idea how to use the Environment variables from Oracle Forms.
    My basic problem is that from Oracle form I am calling Batch file which calls excel file with a macro.
    So i want to check whether the macro was successful or not.
    So in my batch file i will set %errorlevel% which I should be able to read from Oracle Forms.
    I am able to read the registry from oracle forms, so is there anyway to read environment variable as well?
    Thanks!
    Avinash.

    Hello,
    Use the TOOL_ENV.Getvar() built-in
    Francois

  • No access on podcast share from Windows clients

    Hello together!
    I have the following scenatio at home:
    * 1 Server with Windows 2008 R2 with logged in user and iTunes running (everything is shared)
    * 1 Laptop with Windows 7 x64 & iTunes
    * 1 Desktop with Windows 7 x86 & iTunes
    * 1 Macbook with Mac OS X Leopard & iTunes
    With this constellation I want to have access to my iTunes library located on the server from all other computer. With the MacBook this funktions without any problem to access everything (podcasts too).
    On both Windows computer the directory pocasts is invisible. I can find the podcast files in the main directory but they are grey and the the playback does not start.
    Is here anyone who had already the same problem and perhaps solved it? Thank you in advance for your replies.
    P.S. Generally I can play the files by changing the kind of media to movie.
    Message was edited by: Mattn81

    Oleg,
    I had the exact same problem here - we have two XSERVE machines here running OSX 10.5.7 server, and we're accessing a samba share on these servers from Windows XP SP3 clients.
    When moving a file, I noticed a message in /var/log/samba/log.smbd :
    [2009/06/15 12:45:30, 0, pid=50709] /SourceCache/samba/samba-187.8/samba/source/modules/vfsdarwin_acls.c:fsp_setacl(126)
    darwinacl: failed to set ACL on <filename>: Invalid argument
    !#acl 1
    I tried to look this up on google, but had no success.
    Searching the file /etc/smb.conf for "acl" showed the following line:
    vfs objects = darwinacl,darwin_streams
    (Un)commenting this line (inserting a ";" in front of the first character) and restarting s,b solved the problem here - I'm now able to move files without having the permissions set to 0000, and the error in log.smbd doesn't appear any more.

  • Access R12 using FireFox on windows client

    Hi,
    I have R12 installed on linux. For some reason by manager wants to use FireFox web browser to access R12. Could any one plz tell me, do i need to just download the browser and start working on it. And what is the certified version.
    Regards
    Taher

    Hi taher;
    So in ur case do u use one browser for once release level. Like say IE for 11i and firefox for R12. Do u want to suggest me to go for IE8 instead of forefoxPersonaly i use IE 7 for R12 and R11, if i should use R11 i rename some dll in firefox and i can use, but in same time if i try to login R12 i cant(thatswhy i close r11 and rename some dll then open R12)...If someone has same problem and share it i appericate...
    As u know IE8 certified wiht r12, i never use it wiht our instance,thatswhy i cant give u some suggestion. But i can say i am happy wiht IE7 :)
    Internet Explorer 8 Certified with E-Business Suite Release 12
    http://blogs.oracle.com/stevenChan/2009/09/internet_explorer_8_certified_ebs12.html
    Recommended Browsers for Oracle E-Business Suite Release 12 -Note: 389422.1 (already point By Hussein Sawwan)
    Regard
    Helios

  • Windows - PERL5LIB Environment variables

    Hi All,
    I was trying out xampp and I removed the perl5lib environment variables for Oracle. Unfortunately, I did not save the settings in notepad or something and yes, I know how stupid that was. Consequently, now all the clients are failing on that server. For example, if I click on SQL*Plus, I get the "Need to set ORACLE_HOME" error (same thing for PHP, etc.).
    I would really appreciate it if someone can send me their PATH and PERL5LIB environment variables from a Windows (preferrably XP) installation of Oracle. Also, is there some other way to restore these values? Like a bat file or something that gets installed. Thanks a lot.

    Hi. Thank you for your response. I tried rebooting, but I still get the error.
    Like I said, the only change I made was to the environment variables. It is possible that xampp made some changes behind the scenes, but the only known change was me replacing the Oracle PERL paths with the xampp PERL paths in the Windows environment variables (through "My Computer" --> "Properties").
    Is it possible to do a re-configuration using the installer instead of a complete re-install? If you have any other ideas, I would appreciate it. Thanks.

  • Set environment variable in oracle 10g application server control rel3

    hi all,
    i am trying to connect to emc centera through 10g rel3 , here i am getting error .
    error name is:
    com.filepool.fplibrary.FPLibraryException: Error loading FPLibrary or one of its dependencies
    at com.filepool.fplibrary.FPPool.<init>(Unknown Source)
    if any body knows please help me.
    Thanks and regards
    Pravin

    Hello,
    Take a look to http://buttso.blogspot.com/2006/08/accessing-environment-variables-from.html
    Regards
    Tugdual Grall

  • Get environment variable from servelet

    hello
    in my servlet,there is following code block:
    File f=new File("%JAVA_HOME%\\test.txt");
    f.createNewFile();
    the "JAVA_HOME" is the environment variable of my windows.after i deploy it to jboss,it threw exception.that tell me can't find the path.
    then i modify it as:
    File f=new File("%JBOSS_HOME%\\test.txt");
    f.createNewFile();
    the "JBOSS_HOME" is definde in its "run.bat " file.
    the code still don't work.
    who can tell me :
    1 how can i use the environment variable of os or app server?
    2 how and where can i set up a envrionment variable as the base dir ?
    thank you.

    This is a bad idea.
    You shouldn't use absolute file paths or the java.io.File class for that matter in Web apps.
    Better to look in the servlet context using getResourceAsStream(). That'll return an InputStream that you'll be able to read to your heart's content.

  • How do you get LOCAL_ADDR environment variable from weblogic?

    How can you access environment variables, such as LOCAL_ADDR? The request object does not expose methods to get at all the environment variables? I need to know which NIC Card the request is coming off of, which the LOCAL_ADDR will tell me.

    Some variables you can?t get this way.
    I made shellscript that just looked like this.
    set > /yourdir/yourfile.txt
    Then in my class I did Runtime.exec(shellxcript);
    then you just read in "/yourdir/yourfile.txt" as Resource and load it in
    a Property object.
    After that you can get variables to.

Maybe you are looking for

  • Using a digital signature-base method to get tcUtilityFactory

    In OIM API usage guide it is sais that: "The entity using the APIs must maintain security of the private key for the signature. The private key is the basis for establishing trust between the two systems. Oracle Identity Manager must also know what c

  • Fade in on click something else

    I'm new to DreamWeaver CS3, coming from DW MX. I'm playing with the Spry Effects and I noticed the Fade In / Fade Out only has options for the user doing something to that item to make the effect happen. Is it possible to click an image and make some

  • Editable ALV Report

    Hi experts, Is it possible to create ALV report in editable mode. Regards, Rajneesh Gupta

  • Tool_kit_error

    hi, apps-11.5.10.2 db-10g os-hpunix-tru-64 my developer is facing toolkit error in conncurrent program.it is getting completed .........error(status).in log file it is showing like this REP-3000:Internal error starting with oracle toolkit. REP-3000:I

  • Third party tools for documentaion for SAP objects

    Good day,, I would like to if there are any Third party tools for maintaining the documentation for the SAP Objects ... Many thanks ..... Kripa Edited by: kripa shankar on Feb 25, 2008 8:21 AM