Webutil and execute_query

Hi All, Here's my problem for today.
I have a tabular datablock with over 30 data items in each row that is populated by Execute_query.
What I want to do is take results of that query and use Web_util and download the data to my desktop.
I've done something similar by using a cursor, looping thru it and writing the data out, line by line using the "client_text_io.put_line" command and specifying the individual data items.
Is there a way to be able to capture the results of the execute_query and in one swell foop use web_util to transfer this data to my desktop?
Thanks,
Larry

If you must use the result of a execute query in a block you can use GO_BLOCK('block_name'), FIRST_RECORD and NEXT_RECORD to loop over the records and then use put_line to write the content of the block's fields to a file.

Similar Messages

  • Webutil and SQLLDR

    It used to be on the client server when we run a batch file with sqlldr from a form, a cmd window would open and we can actually see a count of the records, and if we want we could make it that the user would have to click a button to close the cmd window and return to the form.
    Now with the web version and webutil, I was able to make the batch file work and the data is loaded into a table, however, when the cmd window opens, it stays blank and you cannot see what is happening.
    Is there a way to get the same performance as the client server version?
    Thanks
    George

    Hi,
    You can read the output/log file using textio (implemented through webutil)
    and give a message to the end user.
    Alternatively use the webutil host to open a command window and pass batch file which will do the sql ldr ....
    Rajesh Alex

  • WebUtil and Jacob Setting for AIX Server

    Dear All
    I am using forms 10G.
    I have done the setting for webUtil and Jacob in my pc for browse button to be and it is working fine .
    But can any one please tell me the steps for implement these things in AIX server .I mean how to configure this to utility Webutil and Jacob in AIX server .
    Kindly anyone tell me what needs to be done in server for webutil ?
    Edited by: LuKKa on Sep 22, 2010 12:01 PM

    the steps are same as in other supported systems.
    Since my blog is failed to help you then i will recommend you to do some more reading ...
    Read the docs http://www.oracle.com/technetwork/developer-tools/forms/webutil-090641.html

  • Webutil and Office 2010

    Has anyone else experienced any issues with webutil and MS Office 2010? We save .xls files to .csv and upload via webutil (10g). We are getting an error that the file on the root directory cannot be found, although it does exist. We found that if we saved as Office 2003 and then as a .csv file, it sometimes works. We never had this problem before upgrading to Office 2010. I ran the form in debug and confirmed it is bombing out on the client_text_io open command.
    thanks in advance

    I think we figured out it was also a Windows7 issue more than Excel. The Windows7 doesn't have a temp directory any longer, but we were able to create another directory (with a more meaningful name) and read/write to it. The webutil works fine now. Seemed like it was maybe a root directory permissions problem.
    thanks

  • WebUtil and ActiveX

    What is the correlation between WebUtil and ActiveX?
    The reason I ask is that we have successfully installed WebUtil on our 9iAS R2 apps server and the Webutil forms that were created all work perfectly on site.
    However our WAN covers sites all over the UK and the majoiry of these sites have all ActiveX settings disabled for security reasons. When accessing from one of these sites the form correctly loads all the .dll and .jar files but the CLIENT_TEXT_IO procedure will not operate.

    ... one thing I forgot. Duncan Mills, who could answer this question a lot better than I can, is on vacation this week.
    Frank

  • Webutil and XP

    Hi,
    We have a form in which we use the call web.show_document(l_url, '_blank'), where l_url is a location of an html file on a local pc. Then in a
    seperate browser the html file is shown.This works fine for our application.
    Now some users are migrated to XP as OS, instead if 2000.. For these users no webbrowser is started after the call to show_document. In the
    javaconsole is also no error seen. It is just that nothing happens.
    In IE and Firefox this problem occurs.
    Is there an issue between webutil and XP? Or is this a different kind of problem?
    Richard

    Thx for quick reply..
    We tried it.. But, problem keeps existing...
    We also tried XP and IE6... again no browser appears ...
    This is the information in the Java Console..
    Oracle JInitiator: Version 1.3.1.22
    Using JRE version 1.3.1.22-internal Java HotSpot(TM) Client VM
    User home directory = C:\Documents and Settings\OPERATORProxy Configuration: Manual Configuration
    Proxy: dasproxy:80 Proxy Overrides: <local>JAR cache enabled
    Location: C:\Documents and Settings\OPERATOR\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://xxxxx:7778/forms/java/frmall_jinit.jar from JAR cacheLoading
    http://xxxxxxx:7778/forms/java/frmwebutil.jar from JAR cacheLoading
    http://xxxxxxx:7778/hsd65java/hst65.jar from JAR cacheLoading
    http://xxxxxxx:7778/dasimages/das_images.jar from JAR cacheRegisterWebUtil
    - Loading WebUtil Version 1.0.6
    Loading http://xxxxxx:7778/forms/java/jacob.jar from JAR
    cacheproxyHost=nullproxyPort=0connectMode=HTTP,native.Versie van Forms-applet is: 10.1.2.0

  • Webutil and Outlook - I get a WUO-714 and WUO-705 error

    Hi,
    I have installed webutil and it loads fine an all. However, I have a problem with a Microsoft Outlook integration. I am simply trying open an Outlook mail item, which is then filled out with some data. Pressing the Send button is up to the user.
    Everything works until the line "mailitem2 := CLIENT_OLE2.INVOKE_obj(MailItem,'Display');" is called. Here Forms reports back: "100501: non-Oracle exception" and the java console gives a WUO-714 and WUO-705. The problems seems to be the Display method. At that point, despite errors, I do have an open, visible mail item with the proper data filled in. (In this process I noticed that the final invoke_obj should happen after you write stuff into the To, Subject and Body of the mail, but that's besides the point.)
    Any advice you can offer is welcome.
    Sincerely,
    Jesper Vad Kristensen
    Aarhus, Denmark
    --- Java console error codes --
    Loading http://oiatst01.tdk.dk:7778/forms90/webutil/webutil.jar from JAR cache
    Loading http://oiatst01.tdk.dk:7778/forms90/webutil/jacob.jar from JAR cache
    Loading http://oiatst01.tdk.dk:7778/forms90/java/f90all_jinit.jar from JAR cache
    RegisterWebUtil - Loading Webutil Version 1.0.2 Beta
    2003-nov-17 09:42:50.624 ERROR>WUO-714 [OleFunctions.setExceptionValues()] Unable to get the last OLE Error details; Exception
    null
    2003-nov-17 09:42:50.634 ERROR>WUO-705 [OleFunctions.invoke_ret_obj()] Unable to invoke Method: Display; Exception
    com.jacob.com.ComFailException: VariantChangeType failed
    --- end ---
    --- Form code ---
    Declare
         OutlookApp      CLIENT_OLE2.OBJ_TYPE;
         Folders      CLIENT_OLE2.OBJ_TYPE;
         MailItem      CLIENT_OLE2.OBJ_TYPE;
         MailItem2      CLIENT_OLE2.OBJ_TYPE;
         OLEPARAM      CLIENT_OLE2.list_type;
         v_kundenummer     varchar2(12) := :v_engagement.konto;
         v_firstname      varchar2(50) := :legal_person.firstname;
         v_surname           varchar2(50) := :legal_person.surname;
         v_company_name      varchar2(50) := :legal_person.company_name;
         v_to                varchar2(50) := '[email protected]';
         v_cc                varchar2(50);
         v_body                varchar2(250) := 'Kundenummer'||' ' ||v_kundenummer||chr(10)||v_firstname||' '||v_surname||' '||v_company_name;
         v_bcc                varchar2(50);
         v_subject           varchar2(50) := 'Fakturakopi';
         v_duedate           varchar2(50);
         v_invoicetext      varchar2(400);
         v_user                varchar2(50):= user;
         v_faktura           varchar2(400);
    BEGIN
         /* snip some string work to create Body contents */
         OutlookApp := CLIENT_OLE2.CREATE_OBJ('Outlook.Application');
         --Create a newMail Object
         OLEPARAM := CLIENT_OLE2.CREATE_ARGLIST;
         CLIENT_OLE2.ADD_ARG(OLEPARAM,0);
         MailItem := CLIENT_OLE2.INVOKE_OBJ(OutlookApp,'CreateItem',OLEPARAM);
         CLIENT_OLE2.DESTROY_ARGLIST(OLEPARAM);
         -- Show the new message box. - Dont do when mailing straight Through
         CLIENT_OLE2.set_property(MailItem,'To',v_to);
         CLIENT_OLE2.set_property(MailItem,'Subject',v_subject);
         CLIENT_OLE2.set_property(MailItem,'Body',v_body);
         mailitem2 := CLIENT_OLE2.INVOKE_obj(MailItem,'Display');
         CLIENT_OLE2.RELEASE_OBJ(MailItem);
         CLIENT_OLE2.RELEASE_OBJ(MailItem2);
         CLIENT_OLE2.RELEASE_OBJ(NameSpace);
         CLIENT_OLE2.RELEASE_OBJ(OutlookApp);
         /* snip some more */
         exception
         when others then
         message('other error: '||sqlerrm);
    --- end ---

    Both the Outlook type library and the M/S online documentation show that the display method on MailItem does not have a return type. try a simple INVOKE rather than INVOKE_OBJ

  • Enter_query and execute_query

    hi all,
    i have a form containing a master-detail, the first thing i do i enter values in 2 fields (of the block A) and i validate (this record already exists), after validate i show in the same form other fields of the block A for update and i mask the first button "validate" and i show another button "validate" to commit changes in block A and Inserting values in detail block B
    the problem:
    when i validate (the first button "validate") i get the message: 'would u save the changes and i must click on "no" in order to show the other fields, so how can i do this without having this message?
    i have enter_query in new-form-instance and execute_query in the first button "validate"

    hai, ali
    just add a parameter to u r execute query procedure.
    EXECUTE_QUERY(NO_VALIDATE);
    this will not validate u r block data and gets total record values.
    if this not solves send complete problem description to my mail.
    hope it works for u.
    bye.
    Raj
    mail : [email protected];

  • Regarding WebUtils and Jacob

    Dear all
    I am following BAIG's blog for configuring WebUtil and Jacob .
    http://baigsorcl.blogspot.com/2010/01/open-file-dailog-box-example-using.html
    Mr Baig told to download both WebUtil and Jacob . But in 10G already Webutil is there .
    So again i nned to Download and replace it ?
    Or only i have to download JACOB ?

    No, you don't need to download it again. It will be available for IDS.
    You need to download only when you are using iAS ..

  • Webutil and time to open a form from server (forms ver 10.1.2.0.2)

    Hi,
    we have an application which uses webutil in some forms and 50 users in a lan with microsoft I.E. browser xp (patch 2 or 3) .
    All the users when run url of forms without webutil have the same time to open the applications, instead when the forms use webutil 5 users have to wait long time before to access to the application (after all works fine and fast)
    For others users (45) the time is the same.
    Besides we install in one of these problematic client the developer suite to try the local A.S. and we wonder that the forms with webutil open quickly in local pc.
    Therefore we have 50 clients and :
    -- 50 clients open quickly the forms without webutil in the lan .
    -- 45 clients open quickly also the forms with webutil in the lan
    -- 5 clients open very slowly the forms with webutil in the lan (after they work fine) and they open quickly the same forms with webutil in local AS (devsuite) . They use I.E. 7 and have patch 3 of xp
    We tried to disable antivirus,microsoft firewall but nothing has changed .
    What could be the problem ?
    Gianpaolo

    Thanks MIke for your feedback...
    Will this surfice?
    Procedure Test_Report Is
    repid REPORT_OBJECT;
    v_rep VARCHAR2(100);
    rep_status VARCHAR2(50);
    BEGIN
    repid := find_report_object('report5');
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_EXECUTION_MODE,BATCH);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,SYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,CACHE);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'html');
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,'repserver90');
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER,'paramform=no pdeptno='||:dept.deptno);
    v_rep := RUN_REPORT_OBJECT(repid);
    rep_status := REPORT_OBJECT_STATUS(v_rep);
    WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED')
    LOOP
    rep_status := report_object_status(v_rep);
    END LOOP;
    IF rep_status = 'FINISHED' THEN
    /*Display report in the browser*/
    WEB.SHOW_DOCUMENT('http://<YourServerName:8888/reports/rwservlet/getjobid'||
    substr(v_rep,instr(v_rep,'_',-1)+1)||'?'||'server=repserver90','_blank');
    ELSE
    message('Error when running report');
    END IF;
    END;

  • Webutil and CalenderPJC Problem

    I have successfully integrated the Webutil CalendarPJC into my forms. It works fine on a single row block, but on a multi-row block the PJC has a strange reaction. I have a button on each line beside a date field. When you click on the button on a row the Java Calendar pops up but the form moves the current row to the next row on the form. Has anyone had this issue and can offer a suggestion how to correct this problem would be greatly appreciated? I tried moving the row back one row as the PJC comes up but that would not work!

    I have a simple form with a multi-row block. The form displays 10 rows when displayed. One of the fields is a date field. I place the Java Bean Area right beside the date field. So on each row there is Button for the CalendarPJC. If the first row is highlighted and I press the Button on that row for the PJC the Java Bean displays the Java Date modal window and moves the current row to row 2. I am running forms 10.2.0.2 on windows and SUN JVM 1.5.0_16

  • Webutil and DDE problem

    Hello,
    We are running into a problem web-enabling a client-server Forms application. We are using WebUtil for HOST and OLE calls and sending files between client and app-server and it all works really marvelous. But we noticed that the DDE package is not available in WebUtil. Unfortunately for us, we are using DDE calls to interact with MS Word (for example merging template letters with address-data) and MS Excel (filling out template sheets with data).
    Can you tell me if DDE will be available in future releases of WebUtil? And, if not, is it (generally) possible to rewrite the DDE-calls to OLE-calls using WebUtil's CLIENT_OLE functions? And what DDE-functionality maps to the corresponding OLE-functionality?
    Or, if it's not possible to rewrite DDE to OLE, what are the alternatives? Removing the interaction between web-forms and MS Office is NOT an option ;-)
    Thanks in advance,
    H. Verschuren

    var shell=new ActiveXObject("WScript.shell")
    var command=null
    var key
    try {
    key="HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Office\\11.0\\Word\\InstallRoot\\Path" /* Word 2003 */
    command= shell.RegRead(key);
    } catch (e) {
    try {
    key="HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Office\\9.0\\Word\\InstallRoot\\Path" /* Word 2000 */
    command= shell.RegRead(key);
    } catch (e) {
    try {
    key="HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Office\\8.0\\Word\\InstallRoot\\Path" /* Word 97 */
    command= shell.RegRead(key);
    } catch (e) {
    command="\"" + command + "\\Winword.exe\" ftp://10.100.x.x\\ftpshare\\macros.dot -mMyMacro"
    shell.run(command,1,false)
    I must learn to monitor threads after I have contributed.

  • Open_form with parameter list and execute_query

    Hello all.
    In a 6i form WBPressed trigger creates the parameter list
    begin
        v_paramlist_id := create_parameter_list('FRM_PARM_LIST');
        add_parameter('FRM_PARM_LIST', 'P_CUST_NUM', TEXT_PARAMETER,
                       to_char(:CUSTOMER_INFO.CUST_NUM));
        open_form('CUSTOM_SCORING', ACTIVATE, SESSION,                   
                         NO_SHARE_LIBRARY_DATA, 'FRM_PARM_LIST');
       destroy_parameter_list('FRM_PARM_LIST');
    end;Then in the second form, WNFInstance trigger has:
        if :PARAMETER.P_CUST_NUM is not null
         then
         GET_PARAMETER_ATTR('FRM_PARM_LIST', 'P_CUST_NUM', x, v_cust_num);
         set_block_property('CUST_SCORING', DEFAULT_WHERE,
                         'CUST_NUM = to_number('||v_cust_num||')');
         go_item('cust_scoring.cust_num');
         do_key('execute_query');I get FRM-40505 Unable to perform query. It was working, but I broke it along the way. Does this much seem correct to open the second form and query the specific customer?
    Upon opening the second form in the Developer tool, it cannot locate a custom Object Library called PARAMETERS. I deleted it & drug it in again from the original (sub-classed). Sould I do the entire library?
    Thanks.

    Hey - I think I see the problem today.. (fresh set of eyes)
    open_form('CUSTOM_SCORING', ACTIVATE, SESSION,
    NO_SHARE_LIBRARY_DATA, 'FRM_PARM_LIST');
    Change this to
    open_form('CUSTOM_SCORING', ACTIVATE, SESSION,
    NO_SHARE_LIBRARY_DATA, v_paramlist_id );
    Hello all.
    In a 6i form WBPressed trigger creates the parameter
    list
    begin
    v_paramlist_id :=
    := create_parameter_list('FRM_PARM_LIST');
    add_parameter('FRM_PARM_LIST', 'P_CUST_NUM',
    UM', TEXT_PARAMETER,
                       to_char(:CUSTOMER_INFO.CUST_NUM));
    open_form('CUSTOM_SCORING', ACTIVATE, SESSION,
    ION,                   
    NO_SHARE_LIBRARY_DATA,
    O_SHARE_LIBRARY_DATA, 'FRM_PARM_LIST');
    destroy_parameter_list('FRM_PARM_LIST');
    end;Then in the second form, WNFInstance trigger has:
    if :PARAMETER.P_CUST_NUM is not null
         then
    GET_PARAMETER_ATTR('FRM_PARM_LIST', 'P_CUST_NUM', x,
    , v_cust_num);
         set_block_property('CUST_SCORING', DEFAULT_WHERE,
                         'CUST_NUM = to_number('||v_cust_num||')');
         go_item('cust_scoring.cust_num');
         do_key('execute_query');I get FRM-40505 Unable to perform query. It was
    working, but I broke it along the way. Does this
    much seem correct to open the second form and query
    the specific customer?
    Upon opening the second form in the Developer tool,
    it cannot locate a custom Object Library called
    PARAMETERS. I deleted it & drug it in again from the
    original (sub-classed). Sould I do the entire
    library?
    Thanks.

  • WebUtil and 9i db

    Hi,
    What features of the 9i database are used by WebUtil? I am on 8i (8.1.7.4) and was wondering if it was absolutely necessary to be at 9i.
    Thanks,
    Mitch

    Shay - Thanks for the info. Unfortunately, the file transfer feature is the exact one I want to use. Just out of curiosity, do you know what 9i-specific features it uses? (I'll probably need this info for justification to our DBAs to upgrade).
    Thanks!
    -Mitch

  • Webutil and intermedia

    Has anyone configured webutil to upload/download ordsys.ordimage datatypes instead of just straight blobs? Just wondering before I tackle it myself.
    Jeremy.

    To configure the webutil_db package to handle intermedia, I just changed the BLOB variables to ORDSYS.ORDIMAGE datatypes and then added <variable>.source.localdata to each instance they get called: DBMS_LOB.GETLENGTH(<variable>.source.localdata) and so on. To set height, width and some other properties of the image being loaded, I made calls to the getproperties() and setproperties() methods of the ORDSYS.ORDIMAGE datatype. If you've used intermedia before, then this'll be pretty straightforward.

Maybe you are looking for

  • Mountain Lion crashes regularly on my MacBook Pro (2010)

    Hi guys, I am really frustrated as my MacBook Pro crashes almost twice a day since I updated to Mountain Lion. Either I doesn't wake up when it's in Sleep Mode (I have to restart it via the on/off switch) or it just crashes, while I am working, showi

  • BT Home HUB 5a and Yosemite

    HI fellow Brit Telecom clients: This is a post I just filed on the main Yosemite wifi discussion thread. STARSHIP YOSEMITE CAPTAINS LOG: You wrote: British Telecom (BT) HomeHub dual-band routers use the same SSID and password for both bands by defaul

  • What's with this "stay connected" pop up message?

    Hi all, I just got a new G5 Intel iMac and have had great success transfering all of my setting and data from my old g4 iMac via the Migration Assistant and Target Disk Mode to the new machine. No problems at all. It was a breeze! However, now that t

  • Help with panning a still image

    Looking for settings advice/help! I want to pan and zoom some simple high quality images in a sequence then export it for web/computer use as an HD 1920x1080. I have tried a number of sequence pre-sets (currently using ProRes 1920x1080 set to 50p (do

  • Repair order with reference to service nitification.

    Hello, I want to create repair order with reference to service notification S1. but when I click create repair order in action box nothing happens. could any one of you help me in sloving this. where is the link missing in customizing. can you help.