Win_API_Environment.Get_Net_Connection????

Hi, I need to know what does the function Win_API_Environment.Get_Net_Connection(string, boolean) and what returns.
Thank!

I changed the D2KWUTIL version from 1.2 to 1.4 , but it is even worse now.
I can't use Win_Api_Environment.Read_Registry, Win_Api_Environment.Get_Net_Connection and
Win_Api_Environment.Write_Registry, but I can use
Get_Windows_Username.
Please, solve this mistery!?!
Thank you in advance
Rose

Similar Messages

  • Using WIN_API_ENVIRONMENT functions in forms 6i

    I converted my forms from Developper 2.1 to Developper 6i. I was able to read the registry variables using WIN_API_ENVIRONMENT functions to open the explorer or Acrobat reader. With Forms 6i, I am getting the following error : "Internal error : PL/SQL error occured".
    Any help is greatly appreciated.
    Thanks

    Hi,
    D2KWUTIL utility is available with Forms 5.0 also. The detailed information about all the functions are available in online help. There is a demo file also, which demonstartes all the D2KUTIL functions.
    You can also download the D2KWUTIL from the following FTP site,
    ftp://oracle-ftp.oracle.com/dev_tools/patchsets/dev2k/Win95NT/d2kwutil/
    Best Regards,
    [email protected]

  • Win_Api_Environment.Read_Ini_File throws error in 11g OAS

    Dear All,
    We are in the process of upgrading our forms application from 10g to 11g. During this process we are facing an issue in Win_Api_Environment.Read_Ini_File.
    h1.Issue :-
    When we access this function we are getting "Undefined Error" error at run time. The same form with same Ini file is working in 10g. Ini file is present in the same path of the OAS and path is configured in the env file. Earlier we got an error WUC-21 in the console along with this "Undefined Error" and after changing the webutil properties in both the server side and client side WUC-21 is resolved but still ""Undefined Error" is present in the screens.
    h1.Server Spec:
    Fussion Middle ware : FMW 11.1.1.4.0 64
    Oracle Application Server : 11.1.1.2.0_64
    patch Applied : p11060983_111140_MSWIN-x86-64
    OS : Windows 2008
    Bit : 64
    Please help me to solve this issue...

    Without looking at the details too far, I can say that some webutil functionality will not work correctly on a 64bit client machine if you are using 11.1.1.x. In this version Oracle only supports using 32bit clients if you are expecting to use WebUtil. In release 2 (11.1.2.x), 64bit Windows client machines are supported.
    Also, be sure you have not copied configuration or webutil specific files from version 10 and moved them to v11. The WebUtil version is Forms 11 is also version 11. Using v10 WebUtil in Forms 11 is not supported. Also, be sure that you have generated webutil.pll into webutil.plx in your version 11 environment. Again, do not use the files from v10.
    Finally, if the client machine you are using for v10 is the same as the one you are using for 11 testing, I would recommend that you clean house before testing v11. Specifically do the following on the client:
    1. Close ALL open browsers
    2. Clear the JRE cache. This can be done from the Java Control Panel or the file system
    3. Delete all occurances of webutil.*properties
    4. Delete the following files from the JRE home\bin directory (C:\Program Files\Java\jre6\bin) if they exist:
    <li>d2kwut60.dll
    <li>jacob.dll
    <li>JNIsharedstubs.dll
    5. Retest.... but again, if you are using a 64bit machine (client) you can expect some webutil features to not work correctly.

  • WIN_API_ENVIRONMENT equivalent in APEX

    Is there an equivalent to the forms win_api_environment.get_windows_username
    I am looking to update a field with the users windows login.
    Thanks
    Fiona

    Hello Fiona,
    I'm not familiar with Forms, but if you referring to the user name running the application, you can use the built-in substitution string APP_USER (page 4-21 on the user's manual). If you want to save the user id you can follow this thread Problem with "On New Instance" computation point
    Hope this can help,
    Arie.

  • Calling report from form. Need PDF output

    I am calling a report from a form using RUN_PRODUCT. I need to display the form in PDF format. When the user clicks the button in the form to run the report, acrobat reader should open up and the report displayed there. Please help.
    Thanks

    Thanks for the response. The first part worked. I am able to get the output in PDF format. In the 2nd part where I want to open acrobat and display the output, I am having some trouble with the code. When I compile, it says
    win_api_environment.read_registry must be declared. Is there some package I need to attach?
    Also, in the After reports trigger, how do I pass vFile (I am assuming this is the PDF file name)?
    Thanks
    The first thing you'll want to do is pass parameters to the report IE DESTYPE, DESNAME and DESFORMAT where these could be FILE, 'c:\temp\report' and PDF.
    Then, you can try this piece of code I wrote (with some help from other people at Metalink and here) sometime back. Now, I call it from forms, but in your case, you'd have to run it in the after report trigger. Since with RUN_PRODUCT you don't know when the report is finished, if you did it from the form, it wouldn't work correctly.
    PROCEDURE OPEN_PDF(vFile IN VARCHAR2)
    IS
    vcServerApp varchar2(40);
    vcServerTag varchar2(600);
    vcCommand varchar2(2000);
    iArgPos pls_integer;
    dummy NUMBER;
    BEGIN
    -- 1 get the Server App for .PDF files
    vcServerApp := win_api_environment.read_registry('HKEY_LOCAL_MACHINE\SOFTWARE\CLASSES\.PDF','',true);
    -- 2 get the executable
    vcServerTag := 'HKEY_LOCAL_MACHINE\SOFTWARE\CLASSES\'||
    vcServerApp||'\SHELL\OPEN\COMMAND';
    vcCommand:= win_api_environment.read_registry(vcServerTag,'',true);
    -- 3 Sort out how to specify the Filename
    iArgPos:= instr(vcCommand,'%1');
    if iArgPos = 0 then --no substitution Var on the command line
    vcCommand := vcCommand||' '||vFile;
    else
    vcCommand := substr(vcCommand,1,(iArgPos-1))||
    vFile||substr(vcCommand,(iArgPos+2));
    end if;
    -- 4 Run using Winexec (or Host if preferred).
    win_api_shell.winexec(vcCommand);
    EXCEPTION
    when no_data_found then
    abortt('Acrobat Reader was not found! Please consult with your help desk to install it and try again.','N');
    END;
    Chad
    I am calling a report from a form using RUN_PRODUCT. I need to display the form in PDF format. When the user clicks the button in the form to run the report, acrobat reader should open up and the report displayed there. Please help.
    Thanks

  • How to create the file on a location where user having rights?

    Hi,
    I have requirement, in my application a lot program thatcreating a report in a file and it is written into a user location. Now it specified directly like ( c:\ or d:\......).
    The problem is that the user doesn't have rights to access that directories. What i suggest or feel i want to create that particular reports on a location where the end user having rights.
    Basically in Windows system %userprofiles% having right to do anyting. Suppose the OS installed in C: the %userprofiles% c:\documents and settings\username or D: then D:\Document and settings\username.
    How to achieve this please help me.
    Good help will be appreciated.
    kanish

    Hello,
    The best practice would be to create the file in My Documents for the current connected user to the windows.
    Unfortunately, you did not mention your forms version. In older version like 6.x there is function in d2kwutil library called Read_Registry in win_api_environment section and in latest versions the same function availble in webutil library with client_ name.
    So, you can read the registery for current connected user by using the above mentioned function from the following path of registry.
    My Computer\HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders
    There is an entry called Personal. Read the path from that entry at runtime while generating/saving file to the client's location and save the file into that path.
    -Ammad

  • How can i find out the Location of fmx file in the forms

    Hi,
    I want to find out the drive name,WHich Contains Fmx file. How can i find it out(at run time) .
    It should be found inside the form.So that i can pass it as a parameter to a Procedure.
    Thanlks in advance.
    regards,
    Alok Dubey

    hi,
    if you are using Client/Server forms with d2kwutil then this should return form full name :
    win_api_environment.get_working_directory() || get_form_property(:System.Current_Form,FILE_NAME)
    engin.

  • Getting Error  while opening the form

    Hi All,
    I am getting error "Frm - 10102: Can not attach PL/SQL library d2kwutil.pll.This library attachment will be lost if the module is saved". Please advise.
    Thanks,
    Tandra

    We are using win_api_environment.Get_Connect_String function.
    One more problem i have.I am not able to run the form like when i am running the form, the form is getting closed. I am using Oracle AS Form services to run the form. I have started OC4J Instance.
    Can you please suggest what steps i need to do in order to run a form in 10g?

  • How to get the full path of the fmx's directory.

    Hi all,
    I will ship my project to a customer. So I must install forms runtime at the customer's machine.
    I put all of the fmx files of my project into a certain directory at the customer's machine, and I create a desktop shortcut of the forms runtime. In the "start in" field of the shortcut property I put the full path of the directory where I put the fmx files. And in the target field of the shortcut property I put after the ifrun60.exe the name of the fmx file which to call first.
    Now , in one of my forms file I want to get the full path of this directory because I must call Ora_Ffi.Load_Library. And the library which I want to load resides on that directory.
    So how to get programatically the directory where the fmx files reside.
    I know that there is the registry entry FORMS60_PATH, but we plan to ship many projects to that customer; so if I use the FORMS60_PATH variable then there will be an error because there will be many directories. And the customer can launch many of the projects at the same time.
    So how to get it.
    Thank you very much indeed.

    If you are using the d2kwutil library, then you can use the win_api_environment.Get_Working_Directory() function.
    If not, I doubt that there is anyway to get it since the get_application_property(current_form) does not return the full path of the form as it used to in prior versions of Oracle forms such as 4.5.

  • What is the exact problem with this file?

    Hi all,
    There is an old form , which was not in use from many days.
    Now when we tried to run the form, i got the error saying "FRM-40734:Internal Error:Pl/SQL error occured.", in the login form.
    When i tried to open the fmb file in Oracle Forms Builder 6i, i got the following error:
    FRM-10102: Cannot attach PL/SQL library d2kwutil. This library attachment will be lost if the module is saved., but the fmb file got open.
    The login button has the following code:
    DECLARE
      UNAME VARCHAR2(30);
      --USER_ID PARAMLIST;
      V_USER APUSERMA.USER_NAME%TYPE;
      V_PASSWED APUSERMA.USER_PASSWD%TYPE;
    BEGIN
    select user_CD INTO :GLOBAL.USER_ID from apuserma 
    where user_CD = :TI_USER_NAME AND user_PASSWD = :IT_USER_PASSWD
    AND SYSDATE BETWEEN USER_VALID_FRM AND USER_VALID_TO;
    :global.user_id  := substr(win_api_environment.read_registry('HKEY_LOCAL_MACHINE\system\currentcontrolset\control\computername\computername','computername'),1,10);
    :global.compname := :compname;
    compnm(:compname);
    --USER_ID := CREATE_PARAMETER_LIST('USER_id_NAME');
    call_form('Forms\MAIN_SCREEN',hide,DO_REPLACE);
    exception
      when no_data_found then
      MESSAGE('Incorrect Username or Password.  Please Re-Enter');
      message(' ');
      RAISE FORM_TRIGGER_FAILURE;
    END;
    EXIT_FORM;
    When i tried to compile, i got error saying ,
    Error 201 at line 10, column 28
    identifier 'WIN_API_ENVIRONMENT.READ_REGISTRY' must be declared.
    I am not getting to know What is the exact problem with this file?
    Help me with this please.
    Thank You.
    Oracle forms builder 6i.
    Oracle 9i.

    Vijetha wrote:
    I also want to know what is the use of  win_api_environment.read_registry('HKEY_LOCAL_MACHINE\system\currentcontrolset\control\computername\computername','computername') ??
    What does it do??
    If i comment the following line , will it be a problem??
    :global.user_id  := substr(win_api_environment.read_registry('HKEY_LOCAL_MACHINE\system\currentcontrolset\control\computername\computername','computername'),1,10);
    Because i commented the above line & compiled, so it is not giving any error now.
    So please tell me what win_api_environment.read_registry does??
    it's read windows registry value. So, no problem if you comment it.
    Thanks

  • D2KWUTILL in forms 9i

    HI GUYS,
    I AM TRYING TO USE D2KWUTIL.PLL IN FORM 9I TO READ CLIENT'S REGISTRY VARIABLES USING WIN_API_ENVIRONMENT.READ_REGISTRY().ITS GIVING ERROR FRM-40735 AND ORA-06502. THE OPERATING SYSTEM IS WINDOWS XP. CAN WE USE D2KWUTIL WITH FORMS9I ,IF YES THEN I THINK I DONT HAVE THE LATEST VERSION OF D2KWUTIL, CAN ANYONE TELL ME FROM WHERE CAN I GET THAT OR MAIL ME AT [email protected] THANKING U ALL IN ANTICIPATION.
    TAKE CARE
    HASEEB

    You should be using WebUtil to do this. You can download it from the forms page on OTN.
    Regards
    Grant Ronald
    Forms Product Management

  • Need to know the path of current Form/Report

    Hi All,
    I need to know the path of the Current Report/Form, but i dont want to use
    get_form_property(:system.current_form,file_name),
    is their any other way for getting the current path from where the report/form is running
    Imran Ahmed

    Hi,
    I dont want to use
    get_form_property(:system.current_form,file_name)
    because it give me the current directory with the form name for eg. (c:\dev6i\temp\abc.fmx) then i have to use
    cur_file_name := get_form_property(:system.current_form,file_name);
    total_length := length(cur_file_name);
    cur_form_name_length := length(get_form_property(:system.current_form,form_name))+4;
    path_length := total_length-cur_form_name_length;
    cur_path:= substr(cur_file_name,1,path_length);
    to get the actual path, and i dont find any function name GET_WORKING_DIRECTORY under WIN_API_ENVIRONMENT theie is get_windows_director and get_temp_directory but not the above, if you have that function then please mail me on [email protected] I also cannot use read_registry(forms_path) because in registry i have different paths.
    Thank You

  • What is the "Progid" of Adobe Acrobat reader.

    hi,
    I am trying to work on OLE invoke the Acrobat Reader File through
    ole container, just as to invode and create object for word we are using create_obj('word.application') .
    So the 'word.application' is stored in progid of registroy file.
    So , i am looking for any file which will be used to invoke pdf file , through ole.
    For example :
    for word progid is 'word.application'
    what is for Adobe Acrobat reader

    Here's a piece of code I got from someone else a long time ago and modified to open a PDF:
    PROCEDURE OPEN_PDF(vFile IN VARCHAR2)
    IS
    vcServerApp varchar2(40);
    vcServerTag varchar2(600);
    vcCommand varchar2(2000);
    iArgPos pls_integer;
    dummy NUMBER;
    BEGIN
    -- 1 get the Server App for .PDF files
    vcServerApp := win_api_environment.read_registry('HKEY_LOCAL_MACHINE\SOFTWARE\CLASSES\.PDF','',true);
    -- 2 get the executable
    vcServerTag := 'HKEY_LOCAL_MACHINE\SOFTWARE\CLASSES\'||
    vcServerApp||'\SHELL\OPEN\COMMAND';
    vcCommand:= win_api_environment.read_registry(vcServerTag,'',true);
    -- 3 Sort out how to specify the Filename
    iArgPos:= instr(vcCommand,'%1');
    if iArgPos = 0 then --no substitution Var on the command line
    vcCommand := vcCommand||' '||vFile;
    else
    vcCommand := substr(vcCommand,1,(iArgPos-1))||
    vFile||substr(vcCommand,(iArgPos+2));
    end if;
    -- 4 Run using Winexec (or Host if preferred).
    win_api_shell.winexec(vcCommand);
    EXCEPTION
    when no_data_found then
    abortt('Acrobat Reader was not found! Please consult with your help desk to install it and try again.','N');
    END;

  • How to get the full path of a specific programe(flash media live encoder in my case) in air?

    I need to call it in air,but first of all how can I figure out where it's installed programatically?

    If you are using the d2kwutil library, then you can use the win_api_environment.Get_Working_Directory() function.
    If not, I doubt that there is anyway to get it since the get_application_property(current_form) does not return the full path of the form as it used to in prior versions of Oracle forms such as 4.5.

  • How to develop a file dialog box in a oracle forms

    please help me its an urgent task,
    how to develop a file dialog box in a oracle 6i forms
    in html we will use <input type ="file"/> to open a dialog box,so that we can upload file to the server .similarly how to upload a file using oracle.

    For Windows there is a library that comes with forms d2kwutil.pll that contains a package win_api_dialog. use the open_file procedure.
    NOTE******** when you select a file from whatever windows directory you choose, it will change your working directory to that directory so right after that you will need to reassign your working directory back to what it originally was.
    Also, you will need to have d2kwut60.dll in the same directory as your d2kwutil.pll. Both come with Developer.
    Example code is
    v_runpath := win_api_environment.get_working_directory(TRUE);
    v_filename := win_api_dialog.open_file('Find File','C:\','*.*',TRUE, 0, TRUE);
    win_api_environment.set_working_directory(v_runpath,true);
    Hope this helps

Maybe you are looking for