WEBUTIL_HOST.HOST

Dear all experts,
I have a form which make use of the WEBUTIL_HOST.HOST command to call up a VB application, it is successfully done. However, the VB apps need to be closed before the focus can go back to the Forms application.
My question is : Can I start up the VB apps and then go back to the Forms apps without closing the VB apps ? This is because the user need to switch between both apps to do their work. Can this be done ?
Thanks a lot !

do u need to share the data between these application in the same session?
If not use an open_form to open the form containing the java bean. Then u will be able to switch between these 2.
Best Regards
Rajesh Alex

Similar Messages

  • Webutil_host.host problems (bugs???)

    Hi,
    I'm using the webutil_host.host(commandline) command to execute batchfiles on a client pc. These batch files are also echoing messages to the screen. In the client server version, when I use the host command, the messages appear in my ms-dos box. With webutil they don't.
    The same goes for the pause command in a batch file. When there is a pause command in the batch file to give the user the possibility to read the messages on the screen and wait for user interaction, the ms-dos box doesn't respond on my key-stroke. I have to close the ms-dos window by clicking on the upperrightcorner cross.
    imo this is unwanted.... Is there a workaround? Or do I have to live with the fact that webutil_host.host != host

    i'm using the webutil host command to execute batch files on the client pc. One function of these batch files is to start SQL*loader to read data-files on the client-pc. This is the core of the application, since the data in the datafiles is the base of the rest of the process.
    Because this is such an important part it is decided to give outputs to the ms-dos console and put pauses in the batchfile, so the process of reading the data-files can be evaluated.
    Since this is a migration traject (moving from c/s to web) my customer doesn't want any functional changes (like outputs to logfiles instead of ms-dos window).

  • Problem in calling Webutil_host.host

    Dear all,
    There is a problem that after calling webutil_host.host, a non-oracle error 100501 popup.
    Can anyone help me to fix this problem. Thanks in advance.
    JY

    This might help ...
    non-oracle exception

  • Opening a file using Webutil_Host.Host Command

    Dear Gurus
    I'm trying to open a file using following command behind a button on my form:
    Webutil_Host.Host('x:\03\03\39920000023.gif');
    I expected from this command to open the given gif file in default image viewer but it takes no action when I press the push button. So should I try something else???

    try this
    Webutil_host command

  • Running a winbatch processing using webutil_host.host

    In 6i form, this is not a problem of clicking a button which run 2 procedures -creating a temp .txt file and bringing up a word document by executing a winbatch .exe file. After converting this 6i form to 10g form. Somehow, the winbatch .exe file is coming up too fast to complete the process. It idles. To solve this problem a message is added after temp .txt file is closed. Although a message with no_acknowledge option is preferred, but does not work!
    -- OS: window 2000, Server: linux red hat, Developer 10g.
    out_file := client_text_io.fopen(in_file, 'w');
    client_text_io.putf(out_file, data_string);
    client_text_io.fclose(out_file);
    message('winbatch processing... click OK to proceed.');
    -- launch winbatch procedure using out_file data:
    webutil_host.host(winbatch parameters...)
    Any other suggestions? Thanks.

    Problem solved. Use SYNCHRONIZE instead of message.

  • Webutil_host command

    Hi,
    I want to achieve the following using webutil:
    Download a pdf file stored as blob in database via db_to_client_with_progress and save it on the client using File_save_dialog. This works o.k.
         myfilename := webutil_file.file_save_dialog('c:\',null,'PDF|*.pdf','Save attachment...');
    r_download :=webutil_file_transfer.db_to_client_with_progress(myfilename,'SEMATT','DOCUMENT','id = '||:sematt.id,'Downloading...','File download in progress...');
    This works, and I can open that file manually using acrobat reader.
    Now I want to open the pdf file using webutil_host.host command:
    webutil_host.host(myfilename);
    This does not work. Even
    webutil_host.host('acrord32 '||myfilename);
    does not work.
    Any help is appreciated!
    Thanks
    Gerald Krieger

    Is the important part of this process the download or the open? Because you could open the PDF from the server using web.show_document. But if you do want to call it from the client then you need to use CMD in the WEBUTIL_HOST call - something like CLIENT_HOST('cmd /c acrord32 '||myfilename);
    Cheers, APC

  • WEBUTIL_HOST Function not works with Batchfiles

    Hi
    I try to call the WEBUTIL_HOST.host('c:\test.bat')
    Function from Forms9i.
    she’s don't work.
    The DosBox hanging on without error
    can help me somewhere?
    Thanks Alfred

    sorry, sorry it works ;-)
    Forms has write the result of the DIR command to the server
    the right code is
    dir > c:\text.txt
    with the next step i have a Problem
    when i use the command PAUSE in the betchfile
    test.bat:
    echo on
    pause
    dir > c:\test.txt
    webutil_host.host('cmd /c c:\test.bat');
    The CMD-Box hangs on
    reg. Alfred

  • Webutil HOST function

    Hi, everyone.
    I am trying to write some client_host commands in Oracle Forms 10g. I finished all I need in my application, but there is one problem. I need raise some notepad files on client file system. But problem is I MUST raise file without raise command prompt window ( unfortunately, it is always raising) and when I closed my notepad file command prompt is moved.
    I try with next webutil stuff:
    - webutil_host.nonblocking('cmd /c notepad') - i preferred this routine, cause I need several command, but everytime cmd raise on the screen
    - client_host('cmd /c notepad',no_screen) - no_screen does not work correctly
    - webutil_host.blocking('cmd /c notepad') - i try this, it is not work, but i rather like to use nonblocking
    I also combine all of this with Terminate_Process(process in PROCESS_ID) and Release_Process(process in out PROCESS_ID) .
    Is anyone have some praxis with that.
    Best regards.

    sorry, sorry it works ;-)
    Forms has write the result of the DIR command to the server
    the right code is
    dir > c:\text.txt
    with the next step i have a Problem
    when i use the command PAUSE in the betchfile
    test.bat:
    echo on
    pause
    dir > c:\test.txt
    webutil_host.host('cmd /c c:\test.bat');
    The CMD-Box hangs on
    reg. Alfred

  • Web.show_document does not open browser anymore

    We upgraded our production database over the weekend from 10g to 11g. When it was still 10g, our Forms application used to open a PDF embedded in IE. After moving to 11g, it does not open IE anymore and shows no error messages. Clicking the button with the web.show_document command does nothing. Our test database is also 11g but does not have this problem. What could have gotten wrong?

    I can't explain why it seems to started failing all of a sudden. We often hear comments like this only to later discover that either someone else made changes of which you are unaware or possbily a software update occurred automatically. For example, the JRE version may have been auto-updated.
    As for recoding in an alternative fashion, it will be difficult for me to say specifically because I don't know the app nor do I know your needs. The biggest, and it isn't all that big, deal will be to identify from where the pdf being opened comes from. In other words, does it already exist on the client machine or is it downloaded to the client from the/a server? Also important to know is whether or not the file name is known or not.
    So, if you want to change the code, first figure out how you want the application to complete the task. Here are my suggestions:
    Suggestion 1.
    <blockquote>If the file (pdf in your case) originally resides on a remote server, then leave it there. The document can be opened using a direct url to the file on the remote server. For example:
    WEB.SHOW_DOCUMENT ('http://server/somepath/my.pdf','_blank');If the file lives within the Forms directories, you can even use a relative path rather than the fully qualified one above. For example, if the files live in \forms\java\foo then you can do this:
    -- The exact entry may differ slightly depending on which
    -- Forms version you are using and where you locate the files
    WEB.SHOW_DOCUMENT ('/forms/java/foo/my.pdf','_blank');This makes the application a little more flexable given that you would not need to change the app code if the server name changed. Once the file has been opened on the client side, whatever pdf reader the end-user is using will offer a "Save" option. So if they choose to save the file locally, they can do so as they desire.</blockquote>
    Suggestion 2.
    <blockquote>If, for whatever reason, the file is downloaded to the client or just happens to already exist on the client, you can use WebUtil's CLIENT_HOST (or WEBUTIL_HOST.HOST) command to open the file locally. There are several ways to do this and which method you choose will depend on a few factors. For example, are all the client machines Windows based? I will assume, for this example that the client machines are Windows based. And, because I like to write code as generically as possible, here is a way to open documents on Windows without the need to know which application normally handles it. In other words, you don't need to know that it will be Adobe Acrobat that opens pdf files or that MS Word will open doc files.
    -- In this example, the value of myPathAndFile is the path and filename.
    -- For example, myPathAndFile := 'C:\Users\<USER_NAME>\Documents\foo.pdf';
    CLIENT_HOST('rundll32 shell32,ShellExec_RunDLL '|| myPathAndFile);This is a bit of an old school way of accomplishing the task, but it is very effective and flexiable. Alternatively, you could use CLIENT_HOST to directly call the file, but this may not always work. For example:
    CLIENT_HOST('C:\Users\<USER_NAME>\Documents\foo.pdf');</blockquote>

  • Problem in Clint_Host

    Hi Experts,
    Using Client_Host i am executing MS-DOS commands.
    While executing black screen coming.
    I am using NO_SCREEN option also. then also command prompt screen blinking.
    Below is the sample code:
    CLIENT_HOST('CMD /C COPY C:\'||:parameter.repfilename||' \\10.87.10.19\IISMailAttach\', NO_SCREEN);
    Please do the needful to avoid the black screen.
    My forms Version is 10g.

    Frist, the NO_SCREEN arg is ignored as it is no longer used. If you are seeing a DOS window which appears to just be "waiting", likely it is. My guess is that the requested remote server cannot be found or there is a permissions issue accessing it. Generally, speaking working with remote machines via WebUtil would be considered "not supported". However, in most cases the underlying cause of the problem is related to a security restriction imposed by the OS on the source or destination machine (depending on exactly what you are doing).
    I have tested what you are doing in my environment using 10.1.2.3 and JRE 1.6.0_37 and it appears to work correctly. In my case, however I am calling a remote machine by name rather than IP address. I would recommend the following:
    1. Use the remote machine name instead of the IP. This will likely only work if the machine name is DNS registered.
    2. Verify that you can perform the same action from the failing client machine directly from a DOS shell.
    3. To help determine if permissions is an issue, try copy a file from the client back to the same client. For example:
    CLIENT_HOST('CMD /C COPY C:\somefile.txt \\TheSameMachine\copied.txt');4. Also consider this:
    WEBUTIL_HOST.HOST('CMD /C COPY C:\somefile.txt \\TheSameMachine\copied.txt');WEBUTIL_HOST includes other variations. Refer to the documentation or the actual WebUtil package for more details.

  • 500 InternalServerError when calling app with same url than oracle app

    Hello
    i wonder if some one could help us.
    we are running an application on oas developed with forms 10g on a specific IP say
    ip 10.10.10:9999 and this application is calling other application (a jsp) on another server
    and to call it i use:
    Web.show_document (http://10.10.10:9080 ,'_blank');
    but that other application is on the same ip than the oracle application
    when this hapens the listener try to connect itself 5 time then it just
    give the 500 InternalServerError .
    any idea why this is happening
    i will realy apreciated your help
    many thanks in advance
    Ana
    ps:
    i forgot to say that when i use the following command :
         webutil_Host.host('cmd /C START iexplore "'||v_url||'"');
    it works
    i think that is because is a new sesion???
    Edited by: ana.gutierrez on 19-feb-2009 4:27

    Hola Roberto
    many thank for your answer.
    the oracle aplication is developed in Forms [32 bits] Versión 10.1.2.3.0 (Producción)
    the server is
    10g Release 2 (10.1.2) Patch Set 3 (10.1.2.3.0) for Solaris Operating System
    the jsp is in a was server it is version 6 the java aplication is developes using jdk 1.4 but is running on a jre 1.6.0_11
    bouth applications have the same ip differt ports
    when oracle app calls the java app use the
    http://999.999.999.9/dir/dir.do?parameters.....
    the port is not especified but is different
    when the java application calls the oracle aplication the url is something like
    http://999.999.999.9:8888/forms/frmservlet?config=oracle_aplication&otherparams=
    if the urls are call directily from a browser they work fine.
    has it got something to do with the configuration of the single sing on ??
    any help or idea will be very apreciated
    many many thanks
    ANa

  • Bean Not Found

    Hi,
    I am using webutil 1.0.6, 10gAS R1 (9.0.4.2.0), compiled the module using Forms 10g (9.0.4.0.19), and I am connecting to RDBMS 10.2.0.1.0.
    I have proved that webutil works by creating a test harness. I proved the webutil_file.file_exists function works, and both the client_host and webutil_host.host procedures work. So, you would imagine no webutil installation issues. The 9.0.4.0.19 (10g) compiled form is called from a form compiled by 9.0.2.9.0 (9i).
    Now that I proved that, I tried calling the webutil procedures from a form in our system that needs to use them. Again compiled in 9.0.4.0.19. I get the error 'oracle.forms.webutil.file.FileFunctions bean not found. WEBUTIL_FILE.GET_ATTRIBUTE_INT will not work'.
    I tried detaching both the webutil.pll and webutil.olb, I always attach the webutil.pll first, and then subclass the olb. I still get the same error.
    Any advice ??

    Well, all I can say to myself is RT?M. In metalink note 270940.1, there is a section 'Using WebUtil functionality in a PREFORM/WHEN-NEW-FORM-INSTANCE/WHEN-NEW-BLOCK-INSTANCE trigger and it does not work. ' that explains exactly why I was getting the error.
    A constraint of using webutil, is new form instance triggers cannot exit_form.
    The code did just that. Workaround was to use a timer event, and to minimise the window so the user doesn't notice too much.
    ISSUE CLOSED.

  • WebUtil Error Bean Not Found

    Dear All,
    i am facing a problem of running webutil functions. I have compiled my webutil.pll and then attach to my form and then i copy the webtuil.olb objects into my
    form and i created one button on my form to show the calculator the code is as follows
    Note: i have webutil.cfg in my classpath of default.env file and i signed both webtuil.jar and jacob.jar successfully but still i am facing error.
    e.g;
    when-button-press
    webutil_host.host('calc.exe');
    error: oracle.forms.webutil.host HOST bean not found.
    WEBUTIL_HOST.execute will not work.
    Thanks.
    Immediate help will be appreciated....

    Hi,
    Have you entered the webutil values in the formsweb.cfg file?
    e.g. WebUtilConfig=<somewhere>\WebUtil\server\webutil.cfg
    WebUtilArchive=frmwebutil.jar,jacob.jar
    WebUtilErrorMode=Alert
    WebUtilConfig=<somewhere>\WebUtil\server\webutil.cfg
    baseHTMLjinitiator=<somewhere>\WebUtil\server\webutiljini.htm
    baseHTMLjpi=<somewhere>\WebUtil\server\webutiljpi.htm
    baseHTML=<somewhere>\WebUtil\server\webutilbase.htm
    Hopefully this may help you.
    L :-)

  • Forms 10g.

    Hi ,
    i am facing problem in forms 10g.
    I have an application in which I have to FTP file from my local folder to unix server(not an Application server) ,for that i am using plink utility.
    so i need command which will get execut on client m/c.
    coz webutil_host.host will wxwcure at AS. and similarly client.host will do same.

    Hello,
    webutil.host() function provide a local machine OS command. So it could include a FTP order or a batch file, or any command the user could type on his machine.
    Francois

  • Options for Client_host

    Hi,
    Do anyone have a link which can show what are all the parameters (or options) that can be used along with client_host and webutil_host
    Regards

    All is written in the webutil.pll itself:
    PROCEDURE CLIENT_HOST(syscmd Varchar2, kwd Number default NULL) IS
    * CLIENT_HOST
    *   This procedure duplicates the action of the HOST Built-in, except that it
    *   operates on the client (browser) tier rather than the Applcation server tier. 
    *   Existing HOST code  can be re-directed to run on the client simply by
    *   prefixing all the calls with "CLIENT_"
    *   The oracle.forms.webutil.host.HostFunctions bean is needed in your
    *   Form to use these functions
    *   Note 1) This version (like client server) is Blocking and will prevent
    *   re-draw of the Forms Screen whilst the Host command is active
    *   Note 2) The kwd argument (e.g. NO_SCREEN etc) is ignored
    *   For more flexible "Host" commands see the WEBUTIL_HOST package
    *   That has facilities for Asynchronous callbacks and return codes
    * Version 1.0.0
    * Change History
    *   1.0.0 DRMILLS 03/JAN/2003 - Creation
    BEGIN
         -- simply call through the to WEBUTIL_HOST.HOST() Function
      if WEBUTIL_HOST.HOST(syscmd) <> 0 then
           raise form_trigger_failure;
      end if;
    END CLIENT_HOST;
    PACKAGE WEBUTIL_HOST IS
    * WEBUTIL_HOST
    *   This Package contains routines to execute "host" commands on the client
    *   Calls may be blocking or asynchronous and if aysnchronous may have a
    *   callback mode e.g. You fire off the process on the client and when it
    *   has finished a user named trigger will execute
    * Version 1.0.2
    * Change History
    *   1.0.0 DRMILLS 27/JAN/2003 - Creation
    *   1.0.1 DRMILLS 01/MAR/2003 - Slight API changes
    *   1.0.2 DRMILLS 17/MAY/2003 - Added call to WebUtil_Core.Init
       * Types
       * PROCESS_ID is a type to represent a process so that you can do
       * things like get the return code and error output and also kill it
      type PROCESS_ID is record (handle PLS_INTEGER);
       * OUTPUT_ARRAY is used to return the Standard Out and Standard Error output
       * from a host command - each line of the output will appear as a member of this array
      type OUTPUT_ARRAY is table of VARCHAR2(256 char) index by binary_integer;
       * Functions
       * HOST function is closest to the old client/server Host.
       * It blocks the Forms client until the host call is finished.
       * This version returns with the return code from the client
      FUNCTION  Host(cmd in VARCHAR2) return PLS_INTEGER;
       * HOST function is closest to the old client/server Host.
       * It blocks the Forms client until the host call is finished.
       * This version returns nothing
      PROCEDURE Host(cmd in VARCHAR2);    
       * Blocking like the Host function blocks the client until
       * it is finished.  However it returns the process id rather
       * than the return code.
      FUNCTION  Blocking(cmd in VARCHAR2) return PROCESS_ID; 
       * This version of Blocking is identical to the HOST Procedure
      PROCEDURE Blocking(cmd in VARCHAR2);  
       * NonBlocking executes a Host command and returns
       * to the Form, allowing PL/SQL to continue at the same time that
       * the command is running on the client.
       * The process id is returned so that you can:
       * 1) Get the Return code from the Process once it's finished
       * 2) Get the console output and error output
       * 3) Kill the Process you started
       * NOTE: It is important to call Release_Process(processId) when
       * You have finished with this process ID - this will release
       * resources in the client (but will not kill the program that
       * you started - use Terminate_Process() for that)
      FUNCTION  NonBlocking(cmd in VARCHAR2)return PROCESS_ID;
       * The Procedure version of NonBlocking executes a Host command
       * and returns to the Form, allowing PL/SQL to continue at the
       * same time that the command is running on the client.
       * In this case the process id is not returned and the client
       * side objects are automatically cleaned up for you.
      PROCEDURE NonBlocking(cmd in VARCHAR2);
       * NonBlocking_With_Callback executes a Host command and returns
       * to the Form, allowing PL/SQL to continue at the same time that
       * the command is running on the client.
       * The difference between this call and NonBlocking is that you
       * can supply the name of a User Defined trigger which WebUtil
       * will automatically call as soon as the process you've started
       * has ended.
       * The process id is returned so that you can:
       * 1) Get the Return code from the Process once it's finished
       * 2) Get the console output and error output
       * 3) Kill the Process you started
       * NOTE: It is important to call Release_Process(processId) when
       * You have finished with this process ID - this will release
       * resources in the client (but will not kill the program that
       * you started - use Terminate_Process() for that)
       * Only call ReleaseProcess in this case *After* the callback
       * trigger has been called.
      FUNCTION  NonBlocking_With_Callback(cmd in VARCHAR2, callbackTrigger in VARCHAR2)return PROCESS_ID;
       * Given a Valid process id that you've gotten from
       * NonBlocking() or NonBlockingWithCallback() you can terminate
       * the client program that you are running.
      PROCEDURE Terminate_Process(process in PROCESS_ID);
       * Get the return code from a given process
      FUNCTION  Get_Return_Code(process in PROCESS_ID) return PLS_INTEGER;
       * Get the console output from a given process
      FUNCTION  Get_Standard_Output(process in PROCESS_ID) return OUTPUT_ARRAY;
       * Get the error output from a given process
      FUNCTION  Get_Standard_Error(process in PROCESS_ID) return OUTPUT_ARRAY;
       * Clean up the resources allocated to a particular Process
       * on the client
      PROCEDURE Release_Process(process in out PROCESS_ID); 
       * Get the ID of the process that has just finished.
       * This call is only valid for use in a callback trigger
       * that has been set up and called through NonBlockingWithCallback()
      FUNCTION  Get_Callback_Process return PROCESS_ID; 
       * Test to see if this Process ID is null
      FUNCTION  ID_NULL(process PROCESS_ID) return BOOLEAN;
       * Test to see if two Process IDs represent the same process
      FUNCTION  EQUALS(process_1 PROCESS_ID, process_2 PROCESS_ID) return BOOLEAN; 
    END WEBUTIL_HOST;Francois

Maybe you are looking for

  • Not able to update PO in SRM 7.0

    Hello, I am not able to update PO using BBP_PD_PO_UPDATE. The way I am using all FM's in my program is as below 1. BBP_PD_PO_GETDETAIL 2. BBP_PD_PO_UPDATE - Importing parameter lv_changed returning value X but not saving the data 3 BBP_PD_PO_SAVE - P

  • Unable to retrieve collections from the Search Service.

    Hi, I have a user trying to upload a collection. She gets the following error: Unable to retrieve collections from the Search Service. Please verify that the ColdFusion MX Search Server is installed and running. Obviously, I checked the service. It w

  • Oracle installation on AIX with existing instances

    Hi, I would like to know if there is a procedure document which can explain the installation of Oracle 9.2 on AIX platform of a host, where there are 3 instances of DB already existing. Do I need to run 'rootpre.sh' before I execute runinstaller? Wha

  • Where are the update file downloaded on Mac iTunes?

    I'd like to know where iTunes does put the iPhone update file, because I suspect the one it downloaded for version 2.0 of OS is not good as at the "verifying the iPhone software" state of the update, iTunes reported "error -6" and the iPhone passed i

  • Same font in Reports Builder environment

    i am facing a query which i am not able to understand. I made 2 reports, one with font '8' and another with '10' in Reports Builder Developer Suite 9i in Windows 2000 professional edition. After this, i copied both the reports into Unix operating Sys