WEBUTIL_HOST

Hello!
Can i run the host command by WEBUTIL_HOST without promt window opening?
And can i pass parameters to my java code that i run form WEBUTIL_HOST?
Thanks!

1. No, but you can use a JavaBean for this purpose.
2.
"And can i pass parameters to my java code that i run form WEBUTIL_HOST"
What java code?
Francois

Similar Messages

  • Webutil_host.nonblocking PROBLEM

    Good afternoon,
    The webutil_host.nonblocking command works fine to open most documents BUT when trying to open a document that has spaces in the filename (example: hello there.doc) it doesn't work?? Does anyone have a suggestion other than renaming the document?
    webutil_host.nonblocking('cmd /c '||p_dir_path||p_file_name);
    Thanks,
    Terry Sicard

    Hi
    WebUtil has trouble with white space , but If you use the "?? character in palce of white space it will work:
    fileName := replace(fileName,' ' ,'?');

  • 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.blocking is not working when an existing Chrome browser is already open

    Hi Everyone,
       I've a small issue which I would like to share with you and hopefully you might have come across this problems before and assist me to resolve it.
    The problem is I'm using Oracle Forms [32 Bit] Version 11.1.2.0.0 (Production) version and in one of the Form's button I'm calling an external API to display the image in a Chrome browser and once it completes, it would return control back to the Oracle Form. In the ideal situation where there isn't any existing Chrome browser opened, the logic would work perfectly as I was using the webutil_host.blocking command that block Form processing until the Chrome browser is terminated. However, as soon as I have one or more existing Chrome browsers open, I was still able to call the external API to display the image but the locking or blocking of the Oracle Form would not work. By the way, all clients accessing the oracle Forms are using Window 7. Is that a solution for that? Is that a Chrome, OS or/and WebUtil issue? Thank you for your assistance and time.
    Regards,
         John

    Hello,
    does anyone have any thoughts on this or a workaround?
    We use the blocking feature to allow the user to make changes to the document and then restore those changes to the database. Without this feature the code falls through and breaks the link between the document and the forms application.
    appreciate all help
    Jim

  • Webutil.host.HostBean not found WEBUTIL_HOST.execute will not work

    Hi everyone:
    I've got a form. I've attached webtill.pll and subclassed webutil.olb.
    In the WHEN-NEW-FORM-INSTANCE trigger it does:
    client_host('cmd /c cd > arch.txt');
    When I execute my form I got the errror:
    webutil.host.HostBean not found
    WEBUTIL_HOST.execute will not work
    Could anyone give me some help on it?
    Thanks!
    Carolina

    Hi!
    this is what I got in the Java console
    JInitiator: Versión 1.3.1.22
    Usar versión JRE 1.3.1.22-internal Java HotSpot(TM) Client VM
    Directorio local del usuario = C:\Documents and Settings\Administrador
    Configuración del delegado: sin delegado
    JAR cache enabled
    Location: C:\Documents and Settings\Administrador\Oracle Jar Cache
    Maximum size: 50 MB
    Compression level: 0
    c: clear console window
    f: finalize objects on finalization queue
    g: garbage collect
    h: display this help message
    l: dump classloader list
    m: print memory usage
    q: hide console
    s: dump system properties
    t: dump thread list
    x: clear classloader cache
    0-5: set trace level to <n>
    Loading http://rx26201:7778/forms/java/frmall_jinit.jar from JAR cache
    Loading http://rx26201:7778/forms/java/frmwebutil.jar from JAR cache
    Loading http://rx26201:7778/forms/java/jacob.jar from JAR cache
    Loading http://rx26201:7778/forms/java/dgrImages.jar from JAR cache
    proxyHost=null
    proxyPort=0
    connectMode=HTTP, native.
    La versión del applet Forms es: 10.1.2.0
    thanks!

  • Webutil_host.blocking( ) example needed  * SOLVED *

    Hello, I need to get the name of the UNIX application server from my forms 10g program. I'm calling pid := webutil_host.blocking('uname -n') but it fails with a return code of 2 no matter how I format the command ('ksh -c "uname -n"', etc). subsequent calls to outp := webutil_host.get_standard_output(pid) or outp := webutil_host.get_standard_error(pid) don't seem to work either as trying to display outp(0), etc display nothing.
    webutil functionality is not being called in pre-form or when-new-form-instance (before webutil is instantiated).
    Can anyone point me to a working example of getting output from a UNIX command?
    Thanks,
    Gary

    Ok, here's how I did it, turned out to be pretty simple:
    FUNCTION get_oas_name RETURN varchar2 IS
      fp text_io.file_type;
      output varchar2(30);
    BEGIN
      host('/bin/uname -n > /tmp/oasname');
      fp := text_io.fopen('/tmp/oasname','r');
      text_io.get_line(fp, output);
      text_io.fclose(fp);
      return output;
    END;Gary

  • 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

  • Webutil_Host and Client_Host

    Hi,
    I am wondering what is the difference between Webutil_host and Client_host?
    I am trying to call sqlplus.exe located in the server and run a text file in the client side. I am wondering if I use webutil_host or client_host?
    Thanks in advance!

    Hi,
    client_host is a wrapper that is rovided for API parity. Client_Host calls Webutil_Host. If you need non blocking calls, or an ID retruned instead of an error code then use webutil_host.
    Frank

  • WEBUTIL_HOST.blocking and winword 2003

    Hi all,
    I got some problems using webutil_host and winword 2003.
    As i open a document with winword in blocking mode, works well if word is not already open.
    Eg if word is already open it dunot do the blocking stuff, and go back to forms immediatly.
    here is the code :
    LC$Cmd := 'cmd /c start "" /WAIT "winword.exe'||'" '|| Path_vima;
    Ret := WEBUTIL_HOST.blocking( LC$Cmd ) ;
    fms_message('back from call');
    LN$But := WEBUTIL_HOST.Get_return_Code( Ret ) ;
    If LN$But <> 0 Then
    Set_Alert_Property( 'AL_ERREUR', TITLE, 'Host() command' ) ;
    End if ;
    So if winword is not open on client -> it works well
    if winword already open -> it dunot block and display fms_message('back from call');
    Plz Help :)
    Thanks
    PS : this work perfectly with Excel ....

    Ok seems that dunot work even if not using forms.
    as launch a cmd like cmd /c start /WAIT winword
    it wait the close of winword to continue execution
    but if i launch winword first and than try a
    cmd /c start /WAIT winword
    it open a second winword but dunot wait for word to be close.....
    that's to bad .
    I'll try look at MS forum

  • 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.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).

  • Webutil_host.blocking procedure blocking the application intermittently

    we are using webutil_host.blocking procedure to open a word document and have the application blocked until word document is closed. It opens the word document fine but blocking the application intermittently. Since it was not blocking intially, I started debugging and tried recompiling the form. It is now blocking the application fine, with no change in the code. It is definitely not the recompilation that made the trick because I compiled the form many times earlier while I was working on other parts of the form. Please share your expertise if anyone had the same issue.

    we are using Forms 10.1.2.0.2 with Webutil 1.0.6

  • WEBUTIL_HOST.blocking is not blocking

    Hello,
    I am having problems using WEBUTIL_HOST.blocking for Microsoft Office 2003 products and Adobe. For example, if I try to open a Word document in blocking mode and Word is already open, the blocking feature fails. I found that this happens also in Excel, Outlook and for pdf files. If the host application is not already open the blocking feature works fine. I have found that for file types using notepad, the blocking feature works all the time.
    Here is our setup:
    Forms Version 10.1.2.0.2
    JInitiator: Version 1.3.1.2
    Forms AS 10.1.2.0.2
    DB10g Enterprise Edition Release 10.1.0.5.0
    Windows XP professional, service pack 2
    Here is the code that runs:
    // v_fullname contains the fully qualifed filename
    v_Cmd := 'cmd /c start "" /WAIT "' || v_fullname || '"' ;
    Ret := WEBUTIL_HOST.blocking( v_Cmd ) ;
    I found a thread on here that solved this problem for Word with the following syntax
    v_Cmd := 'cmd /c start "" /WAIT WINWORD /W "' || v_fullname || '"' ;
    Is there a way to solve this problem with a generic solution? All help is greatly appreciated.
    Thanks Jim

    Hello,
    does anyone have any thoughts on this or a workaround?
    We use the blocking feature to allow the user to make changes to the document and then restore those changes to the database. Without this feature the code falls through and breaks the link between the document and the forms application.
    appreciate all help
    Jim

  • WEBUTIL_HOST.Blocking

    When I try to call the WEBUTIL_HOST.Blocking function from a Webutil enabled Form, I get this error when I try to compile the trigger:
    "expression is of wrong type"
    It is as if I cannot call WEBUTIL_HOST.Blocking as function.
    Here is the code I am trying to compile:
    DECLARE
         type PROCESS_ID is record (handle PLS_INTEGER);
         ret_pid PROCESS_ID;
    BEGIN
    ret_pid := WEBUTIL_HOST.Blocking('c:\bat\runprog.bat');
    END;
    Anyone else run into this problem???
    Thanks.

    This works for me:
    DECLARE
    ret_pid WEBUTIL_HOST.PROCESS_ID;
    BEGIN
    ret_pid := WEBUTIL_HOST.Blocking('c:\bat\runprog.bat');
    END;Well, when I say works I mean it compiles. Obviously I don't have a 'c:\bat\runprog.bat' to run.
    Cheers, APC

  • Webutil_host or client_host delete all files...

    I am trying to delete files within a directory on a client's machine through my forms 9i web application and it's not working???
    I tried
    client_host('cmd c/ DEL c:\gdocdocs\');
    client_host('cmd c/ DEL /F c:\gdocdocs');
    webutil_host.nonblocking('cmd c/ c:\gdocdocs\');
    webutil_host.nonblocking('cmd c/ DEL c:\gdocdocs\');
    Thanks,
    Terry Sicard

    IMHO For Windows 2000, the command should be
    cmd /c DEL /Q c:\gdocdocs\*.*
    /Q - Quiet mode, do not ask if ok to delete on global wildcard
    You could also try:
    echo Y | del c:\gdocdocs\*.*

Maybe you are looking for

  • List of Open Sales Orders

    Hi All,         I  am in need of a report to display  list of open Sales orders, Requirement Date or Requested Delivery Date and Requirement Qty for given Materials (Multiple Input) and Plant. Please guide me, Is there any Standard Report Available t

  • How can we change delivery document while doing shipment

    Hi all, How can we change delivery document in background while changing shipment document.My requirement is to change the netweight in delivery while doing shipment.Actually it gets blocked when we open the shipment. Thank You, Regards,

  • Design Studio SDK: Eclipse fail to open Design Studio with error message

    Hi, Environment: BO 4.1 SP2 Eclipse 4.3.2 I am learning Design Studio SDK using the Developer Guide Tutorial available in help.sap.com. I am trying to deploy the sample SDK component. While I try to open Design Studio application from Eclipse, it thr

  • Application Manager (6.2all) fails to Install (-60) Apps and Update Apps (U43M1D207)

    I have searched the forums for weeks and have yet to find a solution that works. I am currently running WIndows 7 Pro 64 Bit in a corporate environment. I orginally installed all my apps from the Application Manager and then one day about a month ago

  • Want to install Windows 7 64 bit to DV4T-5200

    I'll keep it short - my wife hates Windows 8.  She also hates 8.1.   I am trying to install Windows 7 64 bit to her DV4T-5200 laptop, and I have never had so much trouble getting an OS installed before.  Does anyone know what BIOS settings I need to