Webutil_host.blocking /nonblocking_with_callback problem

I have a word document stored in the database. I want to open it in Word, edit it, save then store it back in the database.
I thought that by using webutil_host.blocking, it would wait until I'd saved the document before continuing, but it doesn't.
I've tried the following code:
ret_code := WEBUTIL_HOST.Blocking('C:\Program Files\Microsoft Office\Office10\WINWORD.exe '|| doc_name ) ;
and also:
     cmd := 'cmd /c start "" /WAIT "' || doc_name || '"' ;
     ret_code := WEBUTIL_HOST.Blocking( cmd );
but neither work - the code following (to save back into the database) executes immediately and doesn't wait until I've quit Word.
I've also tried using nonblocking_with_callback with a callback trigger, but the trigger is executed immediately while my Word doc is still open!
Can anyone help?

Hello,
Yes, it is a user-defined form-level trigger.
Francois

Similar Messages

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

  • I'm having "blocked plugin" problems in mail after 10.7.5 update. Anyone else having this problem?  Fixes?      Thanks!

    I'm having "blocked plugin" problems in mail after 10.7.5 update. Anyone else having this problem?  Fixes? 
    Thanks!

    I'm having "blocked plugin" problems in mail after 10.7.5 update. Anyone else having this problem?  Fixes? 
    Thanks!

  • Java blocking related problem

    This question is related to other questions in this discussion thread, but about a different aspect.
    The program on my QNAP NAS uses Java to bring up the dialog for the selection of files to upload. Each time Java is updated this code has the problem that it doesn't find Java activated. Some other programs seem to do this themselves, but alas the QNAP code does not. A workaround is usually not to use Safari but Firefox. However, today even that didn't do the trick. Only after accessing a site whose code does activate Java itself, is the QNAP code satisfied. As I have no control over QNAP's code (and content with the current version of its system) I would like to know if there is another way to do the Java activation. Once done, I guess it will stay that way until the next Java update. Perhaps something in Terminal? I am not afraid to use that.
    By the way: I have the Safari Preferences Security tab checked on "Enable JavaScript" (change and change back doesn't solve the problem, not even after quit and reopen). In the Internet plug-ins tab checkbox "Allow Java" under the button "Manage Website Settings ..." the website of the NAS is listed as having full allowances. More settings relevant to the problem I cannot find. Using the latest MacOSX.
    A side note: In "Manage Website Settings ... there are four possibilities, under which "Allow Always". The strange thing here is that in contrast always an alert comes up, asking if I want to block or not. But that is the behaviour I should expect instead from selecting "Ask before Using". Is there an explanation for this? Allthough it is not so much a hindrance, I find it strange behaviour given the label.
    Thanks in advance for your contributions on the solution of this problem.

    You could try installing the Phony extension and set it to Desktop Firefox. If that allows you to connect to the server then your company's server is doing a bad job of detecting Firefox browsers.
    https://addons.mozilla.org/en-US/android/addon/phony/
    If that does not work then I don't know of anything else we can do to assist as this is a privately controlled server.

  • Checkered / Block Screen Problems. What should I do?

    I have had my iMac G5 w/built in iSight for quite a while now and suddenly my screen has become quite erratic. The screen begins with just finder items such as the top toolbar, the dock, and application switcher checkering and then the entire screen starts to become checkered. This does not happen gradually, but suddenly. When first turning on the computer this block problem is not prevalent, but after a certain period of time the problem becomes visible. I don't know if this is an internal problem or what but I would like to know what I should do. Please see pictures posted below of my problem and hopefully somebody can point me in the right direction!! Thank you very much
    http://i255.photobucket.com/albums/hh128/chapwag1001/Picture1.png
    http://i255.photobucket.com/albums/hh128/chapwag1001/Picture3.png
    http://i255.photobucket.com/albums/hh128/chapwag1001/Picture4.png
    http://i255.photobucket.com/albums/hh128/chapwag1001/Picture5.png
    Thanks in advance!

    >CREATE DATABASE [@DBname]
    That does not work. You have to use dynamic SQL:
    http://www.sqlusa.com/bestpractices/dynamicsql/
    Kalman Toth Database & OLAP Architect
    IPAD SELECT Query Video Tutorial 3.5 Hours
    New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012

  • Block corruption problem in alert and rman/dbv no show errors

    Hello, I'm new in Oracle's world. I have one problem with Oracle 10.2.0.4 (RHEL 5.6) x64. Archive redo-log enable
    In the alert.log, three days ago show (the server have kernel panic & rebooted):
    Mon Sep 24 18:18:17 2012
    Hex dump of (file 17, block 669888) in trace file xxxxxxxxxx.trc
    Corrupt block relative dba: 0x044a38c0 (file 17, block 669888)
    Bad check value found during buffer read
    Data in bad block:
    type: 6 format: 2 rdba: 0x044a38c0
    last change scn: 0x0000.14eb5309 seq: 0x1 flg: 0x04
    spare1: 0x0 spare2: 0x0 spare3: 0x0
    consistency value in tail: 0x53090601
    check value in block header: 0x6ea3
    computed block checksum: 0x2
    Reread of rdba: 0x044a38c0 (file 17, block 669888) found same corrupted data
    Mon Sep 24 18:18:19 2012
    Corrupt Block Found
    TSN = 23, TSNAME = TABLE_TSD1
    RFN = 17, BLK = 669888, RDBA = 71973056
    OBJN = 86908, OBJD = 86908, OBJECT = SYS_C0040110, SUBOBJECT =
    SEGMENT OWNER = SCHEMA1, SEGMENT TYPE = Index Segment
    Yesterday, we detected this error because SQL don't execute.
    The error repeat 47times and there is 6 different file-block combination (4 index of schemas, 1 of sys and ¡2 tables!)
    First, I launched expdp and exp of the one problematic schema. The export was fine, no errors while exporting, but in the alert.log show one block corruption. Should exp and expd show error and stop?
    Next, I used dbv and verify all dbfs. Only show 2 blocks error in two datafiles (indexes).
    Next, I used RMAN:
    A) check database: no error.
    B) validate database: error in two blocks (logical error) and different from the 6 in alert.log. This two blocks are indexes.
    I re-create this two indexes. When i re-create, the block error disappear (not inmediate, suppose that disappear when block was rewrite). Now dbv and rman show no error.
    I have read one note about types of error, other about procedures if db is in archivelog/noarchivelog. Also if object is index or table. But I find anything about auto-repair corrupt blocks in Oracle or why now the 6 block error are solved. I don't know if two tables with two block corrupt lost rows or not.
    Appreciate any help.
    Regards

    Hello Fran. Result of query before rebuild problematic INDEXES:
    SQL> select * from V$database_block_corruption;
    FILE# BLOCK# BLOCKS CORRUPTION_CHANGE# CORRUPTIO
    3 98857 1 390928740 LOGICAL
    9 48632 1 390325900 LOGICAL
    When I ran RMAN first time to check blocks, it filled V$database_block_corruption with two bad blocks. Different from the 6 errors from alert.:
    RMAN> backup validate check logical database;
    Error backing up file 9, block 48632: logical corruption
    Error backing up file 3, block 98857: logical corruption
    I extracted index name from each block and I re-created it. Also, I created a temporary table in tablespace's datafile to fill blocks empty. Problem solved. Rman / dbv show no error.
    I'm searching for similar experiences and found: Re: Data in bad block
    First 6 bad checksum errors in alert.log disappear with any visible problem?
    Can I sure that DB is fine if RMAN and DBV show no errors?
    Thank you very much
    Edited by: user7755509 on 27-sep-2012 5:43

  • Solution needed for Blocked material problem

    Hi Guys,
    Scenario  :   There are two plants in a Location(Plant A & B) and a Customer.Now the Material is blocked  so that after the sales order the material will not be allowed to move from Plant A to B as well as the
    material will not be moved to the customer end.
    Solution needed :  I need to move the blocked material from Plant A to Plant B,But the material shouldn't be transferred  to  the customer end.
    How should I proceed for this problem?
    Regards
    Jino.

    hi,
    Theres a functionality in the material master...MRP view were u cld deifne theplant spcfc material status were u cld define the status and even u cld fnd it in Sales organisation data were u cld block for the particular functionality...
    PLS check that and define as per u r reqmnt.. and try
    Hope this helps u out
    Regards,
    sravanthi
    Edited by: Sravanthi683 on Jun 22, 2009 1:45 PM

  • BT 6500 - Blocked Calls Problem

    I have a problem with a BT 6500 phone. I have programmed the phone to block calls by call type: ie Withheld / International / Coin Box.
    Over the last few months, all calls from these type numbers have been blocked.
    However, according to the manual, calls that are blocked by call type can leave a message on my ansaphone, if they want to.
    This is not happening - I have missed several calls, from withheld numbers, as they were unable to leave a message. My phone number just kept on ringing out.
    I have tried on 2 /3 occasions to reset this facility, but still messages are unable to be left.
    Any solution??

    Have you used the forum search ie. http://community.bt.com/t5/forums/searchpage/tab/message?filter=labels%2Clocation&location=forum-boa...
    You will find lots of info there.
    There are some useful help pages here, for BT Broadband customers only, on my personal website.
    BT Broadband customers - help with broadband, WiFi, networking, e-mail and phones.

  • Block creation problem in member formula

    Hi,
    I have a member formula as below :
    IF(.....)
    x = a/b;
    ENDIF
    where a,b have their own member formulas.
    There is no issue with the calculations of x,a or b, but I am facing an issue with block creation of x.
    Is there a way to handle block creation through member formulas? I know the way out through calc scripts, but i am trying to limit the use of calc scripts.
    Thanks!
    Note:The storage property of all three members is store. Also, a and b lie in the same intersection (same block), and x lies in another intersection.

    In the following section of the dbag: http://docs.oracle.com/cd/E12825_01/epm.111/esb_dbag/frameset.htm?dcaoptcs.htm...
    Under the sub-section: In Equations in a Dense Dimension...
    It states as follows:
    In Equations in a Dense Dimension
    When you use a cross-dimensional operator in an equation in a dense dimension, Essbase does not automatically create the required blocks if both of these conditions apply:
    Resultant values are from a dense dimension.
    The operand or operands are from a sparse dimension.
    You can use the following techniques to create the blocks and avoid the performance issue.
    Ensure that the results members are from a sparse dimension, not from a dense dimension. In this example, the results member Budget is from a sparse dimension:
    FIX(Sales)
    Budget = Actual * 1.1;
    ENDFIX
    FIX(Expenses)
    Budget = Actual * .95;
    ENDFIX
    Use the DATACOPY calculation command to create and then calculate the required blocks. See Using DATACOPY to Copy Existing Blocks.
    Use a member formula that contains the dense member equations:
    FIX(Sales, Expenses)
    Budget (Sales = Sales -> Actual 1.1;*
    Expenses = Expenses -> Actual .95;)*
    ENDFIX
    The phrasing of that last part would lead me to believe that block creation via a member formula is possible. Though I'm not sure of the member to which that formula should be applied. Furthermore, the code looks funky in that we're fixing on Sales and fixing on Expenses, and them on the left side of the equation within the fix.
    Thoughts anyone?

  • Persistant non-blocking operation problem

    When using asynchronous database calls with non-blocking methods, I am getting a persistant error on the CreateSQL method call - the error is "OIP-04153: Non-Blocking operation in progress". This is raised even though the database connection has been closed and restarted and no non-blocking operations called. The methods used are similar to the following example code:
    Dim OraDatabase as OraDatabase
    Dim OraStmt as OraSQLStmt
    Dim stat as long
    Dim OraSess as OraSession
    Set OraSess = CreateObject("OracleInProcServer.XOraSession")
    Set OraDatabase =OraSess.OpenDatabase("ExampleDb", "scott/tiger", 0)
    'execute the select statement with NONBLOCKING mode on
    set OraStmt = OraDatabase.CreateSQL ("update emp set sal = sal + 1000", ORASQL_NONBLK)
    'Check if the call has completed
    stat = OraStmt.NonBlockingState
    if stat = ORASQL_STILL_EXECUTING
    MsgBox "Cancelling the asynchronous operation that is underway"
         OraStmt.Cancel
    End if
    I cannot cancel the operation using OraStmt.Cancel because OraStmt Is Nothing!

    Actually, that is not correct. All of the 48 port Gig-E line cards for the 6500 are oversubscribed; it does vary by the degree of oversubscription.
    In a 6506 or a 6509 (with a Sup720) you have (2) 20 Gbps connections (per slot) to the fabric. With a WS-X6748-GE-TX you have a potential for 48 (Full Duplex) Gbps of traffic, but only 2 connections to the fabric. This yields an oversubscription rate of 1.2:1 (or 48:40) assuming a worst case scenario.
    It should be noted that the 24 port 67xx cards are still oversubscribed as well, because they only have one connection to the fabric. There is a potential for 24 Gbps of traffic and only (1) 20 Gbps fabric connection, so it has an identical oversubscription rate.
    By using only 24 of the 48 possible ports, depending on which ones you choose, you should be OK. But I do not know which ports use which fabric connection on the backplane, so I can't assist you in picking them.
    It should be noted that in most environments it is unlikely every port will be a 100% utilized so the risk of dropping packets because of oversubscription is low.

Maybe you are looking for