Form calling report by HOST( rwrun...)

I want to call a report within Form & mail that output of report to respective destination.
I am trying to implement by using rwrun in form i m giving
Client_host('rwrun .....'); by giving destype "mail" I am able to send output of it
by mail. But now I want to implement by using Host command
Client_Host --> to run @ client machine
Host --> to run @ server (linux)
Please help about it.

hey Rajesh_Alex,
I tried same by using RUN_REPORT_OBJECT but it gives error
FRM-41219: Cannot find report: invalid ID
Please Help Me.......
here is my code
declare
          v_report_id REPORT_OBJECT;
          v_job_id varchar2(70);
          sts varchar2(80);
begin
v_report_id:=find_report_object('C:\Testing\Purchase_Order.rdf');
--v_report_id:=find_report_object('Purchase_Order');
SET_REPORT_OBJECT_PROPERTY (v_report_id,REPORT_COMM_MODE,SYNCHRONOUS);
SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_DESTYPE,mail);
SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_DESFORMAT,'PDF');
SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_DESNAME,'[email protected]');
SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_OTHER,':P_POR_NO='||'2006-30210'||'paramform=no');
v_job_id:=RUN_REPORT_OBJECT(v_report_id);
sts:=REPORT_OBJECT_STATUS(v_job_id);
end;

Similar Messages

  • Form call report,but form hang when report sun slowly,how to set server?

    In version 10.1.2
    Form call report, form hang when report sun slowly,
    finally the report will done,I can see the output in the server disk,but form hang,
    I think it's out of the report session, ,how to set server?
    thanks for any help!
    lind

    Hello,
    If you are using the "Paper Layout", check the Reports's "Before Report Value" property:
    Before Report Value :
    <meta http-equiv="Content-Type" content="text/html; charset=&Encoding">
    If you are using the "Web Layout", take a look to the document :
    http://download-uk.oracle.com/docs/cd/B14099_17/bi.1012/b14048/pbr_nls.htm#i1006142
    18.3 Specifying a Character Set in a JSP or XML File
    Regards

  • Forms calling Reports output issue RTF/PDF - strange issue

    Dear All,
    I'm looking for a bit of help with a strange situation calling reports from Forms.
    This problem I'm getting in both 11.1.1 and 11.1.2 of Forms/Reports. Client is WinXP/7 (issue appears on both), Weblogic server is Linux (SLES11 and Red Hat - issue on both)
    So the issue is
    1. calling a report with output as RTF (this works fine and we use OLE2 to open the report in Word)
    2. Wihile in that form call the same report though change the output to be created as PDF in the cache and the report then opens in IE (this too works fine)
    3. Now if we try and do number 1 again (still in the same form) and run the same report again and choose to generate as RTF and open in word, it erroneously generates the report in PDF format but with an .RTF extension on the file.
    Of course most of the time people would not want to do this, but the client has identified this issue and classified it as a bug, so we need to fix it (and it doesn't happen in the Forms6i version it is migrated from).
    I have tried to ensure that the parameter list is correctly deleted and re-created, which appears to be the case. I also tried to generate a new unique parameter list for every run, which made no difference to the problem.
    If I choose to run a completely different report, the problem has reset itself. So the problem exists only when I've chosen the PDF output and then run the same report thereafter as RTF output to a file.
    Code to prepare for the RTF option is:
    Add_Parameter(pl_id,'destype',TEXT_PARAMETER,'FILE');
    Add_Parameter(pl_id,'desname',TEXT_PARAMETER,l_temp_env||'/'|| p_report || '.rtf');
    l_report_desname := l_temp_env||'/'|| p_report || '.rtf';
    Add_Parameter(pl_id,'DESFORMAT',TEXT_PARAMETER,'RTF');
    Add_Parameter(pl_id,'REPORT_DESFORMAT',TEXT_PARAMETER,'RTF');
    Add_Parameter(pl_id,'mode',TEXT_PARAMETER,'BITMAP');
    l_report := p_report;
    Code used to prepare for PDF option is:
    Add_Parameter(pl_id,'destype',TEXT_PARAMETER,'CACHE');
    Add_Parameter(pl_id,'desname',TEXT_PARAMETER,'');
    Add_Parameter(pl_id,'desformat',TEXT_PARAMETER,'PDF');
    l_report := p_report;
    Any ideas gratefully received.
    cheers
    Tony

    So I delete the paramlist correctly, then the code is:
    IF (p_display_method = 'W')
    THEN
    --WORD Format
         --delete file on client
         Delete_File('c:\temp'||'\'|| p_report || '.rtf');
         --delete file on app server
         host('rm '||l_temp_env||'/'|| p_report || '.rtf');
         Add_Parameter(pl_id,'REPORT_DESTYPE',TEXT_PARAMETER,'FILE');
         Add_Parameter(pl_id,'DESTYPE',TEXT_PARAMETER,'FILE');
         Add_Parameter(pl_id,'DESNAME',TEXT_PARAMETER,l_temp_env||'/'|| p_report || '.rtf');
         l_report_desname := l_temp_env||'/'|| p_report || '.rtf';
         Add_Parameter(pl_id,'DESFORMAT',TEXT_PARAMETER,'RTF');
         Add_Parameter(pl_id,'REPORT_DESFORMAT',TEXT_PARAMETER,'RTF');     
         Add_Parameter(pl_id,'MODE',TEXT_PARAMETER,'BITMAP');
         Add_Parameter(pl_id,'printjob',TEXT_PARAMETER,'no');
         l_report := p_report;
    ELSIF (p_display_method = 'E')
    THEN
    --EXCEL format
         --delete file on client
         Delete_File('c:\temp'||'\'|| p_report || '.csv');
         Delete_File('c:\temp'||'\'|| p_report || '.xls');
         --delete file on app server
         host('rm '||l_temp_env||'/'|| p_report || '.csv');
         Delete_File(l_temp_env||'\'|| p_report || '.cvs');
         Delete_File(l_temp_env||'\'|| p_report || '.xls');
         Add_Parameter(pl_id,'destype',TEXT_PARAMETER,'FILE');
         Add_Parameter(pl_id,'desname',TEXT_PARAMETER,l_temp_env||'/'|| p_report || '.csv');
         Add_Parameter(pl_id,'desformat',TEXT_PARAMETER,'csv.prt');
         Add_Parameter(pl_id,'REPORT_DESFORMAT',TEXT_PARAMETER,'csv.prt');
         Add_Parameter(pl_id,'MODE',TEXT_PARAMETER,'character');
         Add_Parameter(pl_id,'printjob',TEXT_PARAMETER,'no');
         l_report := p_report || '_d';
    ELSIF (p_display_method = 'P')
    THEN
    -- PDF Format
         Add_Parameter(pl_id,'destype',TEXT_PARAMETER,'CACHE');
         Add_Parameter(pl_id,'desname',TEXT_PARAMETER,l_temp_env||'/'|| p_report || '.pdf');
         Add_Parameter(pl_id,'DESFORMAT',TEXT_PARAMETER,'PDF');
         Add_Parameter(pl_id,'REPORT_DESFORMAT',TEXT_PARAMETER,'PDF');     
         l_report := p_report;
    END IF;
    So all of the above works fine when generating a report the first time you enter a form, but if you run a PDF output report then immediately in the same form generate the report again to a non-PDF format, it comes out in incorrectly in PDF format.
    rgds
    Tony
    Edited by: tony.g on Nov 29, 2012 1:37 PM

  • Form calling Report with web.show_document caught by SSO

    A 10g form button calls a 10g report via web.show_document.
    In the dev environment it works, but in the full app server SSO is enabled and stops & prompts for a login/password.
    I'm trying to include the SSOCONN parameter in the URL. I've tried the db userid & the sso userid without success.
    Any help is much appreciated.

    How are you calling the report with Web.Show_Document (what's the URL you're passing)? The application I'm working on uses SSO and I call Reports from Forms and don't have this issue. You should just have to pass the return value of RUN_REPORT_OBJECT() in the URL along with the server name - at least that is how we do it. For example (bare in mind this is an abbreviated example):
    DECLARE
         v_rep_rtn   VARCHAR2(4000);
         v_repsvrname      VARCHAR2 (100);  /* This is a CONSTANT and used here as an example */
         v_paramlist  paramlist;
    BEGIN
         v_rep_rtn := Run_Report_Object(v_report, v_paramlist);
         Web.Show_Document('/reports/rwservlet/getjobid'||substr(v_rep_rtn,Instr (v_rep_rtn, '_', -1) + 1)||
                          '?server=' || v_repsvrname);
         v_report    := Find_Report_Object('REP1');
         Set_Report_Object_Property(v_report, report_execution_mode, batch); 
         Set_Report_Object_Property(v_report, report_comm_mode,      synchronous);
         Set_Report_Object_Property(v_report, report_destype,        CACHE);
         Set_Report_Object_Property(v_report, report_desformat,      'pdf');
         Set_Report_Object_Property(v_report, report_server,         v_repsvrname);
         v_rep_rtn := Run_Report_Object(v_report, v_paramlist);
         rep_status := Report_Object_Status(v_rep_rtn);
         WHILE rep_status IN ('RUNNING', 'OPENING_REPORT', 'ENQUEUED')     LOOP           
              rep_status := Report_Object_Status(v_rep_rtn);        
         END LOOP;   
         IF rep_status <> 'FINISHED' THEN
              msg_box('Error when running report. Status = '||rep_status);  
         else
              Web.Show_Document('/reports/rwservlet/getjobid'||substr(v_rep_rtn,Instr (v_rep_rtn, '_', -1) + 1)||
                          '?server=' || v_repsvrname); -- || '&authid=orcladmin/admin999');
         END IF;
    END;Hope this helps.
    Craig...
    -- If my response or the response of another is helpful or answers your question please mark the response accordingly. Thanks!

  • Migrating application containing forms calling reports on ids9i

    i am trying to migrate an application with forms and reports.
    problem: menu.mmb contains "run_product(REPORTS..."
    i tried: result:=run_report_object(find_report_object('abr_as'), ' ');
    (and definied this report in the menu.fmb)
    rep-file and rdf-file are in the same dir as fmb-files
    i am working with oc4j standalone (without as)
    => and get: "rep-0503 Sie haben keinen Berichtnamen angegeben"...
    by the way: did anyone successfully used ifconvplsql90 (forms migration util) ???
    if i try this util, it replaces the "run_product"-line with:
    rp2rro.rp2rro_run_product(REPORTS, 'abr_as', SYNCHRONOUS, RUNTIME, FILESYSTEM, ' ', NULL);
    => FRM-41219 Bericht nicht gefunden. Ung|ltige Id.
    (and a lot of following errors...)

    G|nther,
    I am inlining my comments
    >i am trying to migrate an application with forms and reports.
    problem: menu.mmb contains "run_product(REPORTS..."
    i tried: result:=run_report_object(find_report_object('abr_as'), ' ');
    (and definied this report in the menu.fmb)
    So I am assuming that you have a reports object node of the the name "abr_as". Thus "abr_as" is not the name of the Reports module (rdf or rep).
    If abr_as is the name of the Reports physical file, then please create a Reports Object node and add this name as the physical file name in teh properties. use the name of the Reports object within your Run_Report_Object calls
    >rep-file and rdf-file are in the same dir as fmb-files
    i am working with oc4j standalone (without as)
    Make sure that the directory is known by the Reports Server. Use Reports_Path setting in the registry. Forms does not look for the Reports directly but call ReportsServices. make sure that the Reports Object property has a valid entry for a Reports module
    >=> and get: "rep-0503 Sie haben keinen Berichtnamen angegeben"...
    by the way: did anyone successfully used ifconvplsql90 (forms migration util) ???
    if i try this util, it replaces the "run_product"-line with:
    rp2rro.rp2rro_run_product(REPORTS, 'abr_as', SYNCHRONOUS, RUNTIME, FILESYSTEM, ' ', NULL);
    All that this utility does is to take teh Run_Product request and pass it to the plsql library shipped with the utility. The utility also create a Report Object node that is used with the library call. An here is where the possible problem is:
    Menu items don't have a Report Object node. Thus you need to make sure that the fmb file using this menu module does have the rp2rro entries. The easiest way to achieve this is to create a dummy run_product entry in the fmb file and run this through the converter. This adds all the rp2rrp dependecies to the fmb file. Finally remove the dummy run_product entry (that now shows converted) but leave the rp2rro parameters , Reports Object node and attached library.
    >=> FRM-41219 Bericht nicht gefunden. Ung|ltige Id.
    (and a lot of following errors...)
    The are some known issues with the rp2rro.pll (the call to Reports9i Services has a wrong format) that will be fixed in the first Forms9i patch that comes out soon.
    A Whitepaper about integrating Forms9i with Reports9i will be available on OTN in mid december (It's currently reviewed)
    Frank

  • Form call report

    In Unix environment when I call REPORT from FORM using RUN_PRODUCT built-in, it has no response and no error message just as if it has run but no display.
    How to solve the problem? Is there anyone who used form6i and report6i and their integration or configured form server and report server on unix?
    null

    In Unix environment when I call REPORT from FORM using RUN_PRODUCT built-in, it has no response and no error message just as if it has run but no display.
    How to solve the problem? Is there anyone who used form6i and report6i and their integration or configured form server and report server on unix?
    null

  • From form calling report to result to pdf file

    Dear All,
    Usually, when we call a report from form, it calls to preview. Now, I would like to autometically call the report and upon execute, the pdf file will be created. Can anybody tell me how to do that.
    p/s: I do not want the preview becasue this report is a complicated report and it takes quite some time to process. So I would like my user to get the pdf directly instead of going though the preview.
    Thanks

    DECLARE     
    pl_id ParamList;
    Begin
    pl_id := Create_Parameter_List('Reports_Parameters');
    Add_Parameter(pl_id,'PARAMFORM',TEXT_PARAMETER,'NO');
    Add_Parameter(pl_id,'DESTYPE',TEXT_PARAMETER,'FILE');
    Add_Parameter(pl_id,'DESNAME',TEXT_PARAMETER,'C:\aRep1.Pdf');
    Add_Parameter(pl_id,'DESFORMAT',TEXT_PARAMETER,'PDF');
    RUN_PRODUCT REPORTS,'C:\Rep1',SYNCHRONOUS,RUNTIME,FILESYSTEM,pl_ID);
    Destroy_Parameter_List(pl_id);
    End;

  • Urgent: Calling Reports from Oracle Forms 10g (10.1.2.0.2) fails

    Problem displaying a report from within Oracle 10g forms.
    After a lot of work, we are able to access and actually display a report directly from Internet explorer and view the report from the report server as well.
    The successful url was:
    http://york.vrc.virginia.gov:7778/reports/rwservlet
    ?report=/u01/app/oracle/produ ct/vrcmidtier/reports/vrc/pmw41051.rdf
    &userid=vrcpr/vrcpr@vrctest&destype=cache&desformat=HTML
    The form displays correctly back to the screen
    When executing from within the form, however, the report runs but does not display back to the screen.
    Forms Steps so far:
    created a report object called pmw41050
    static parameters are:
    file name: /u01/app/oracle/product/vrcmidtier/reports/vrc/pmw41051.rdfination format
    execution mode: batch
    communication mode: synchronous
    destination name; null
    destination format: HTML
    reportserver:: vrc_york_midtier
    Built a when button pressed trigger as follows:
    declare
    l_report_file varchar2(200);
    l_report_id REPORT_OBJECT;
    l_report_status varchar2(200);
    begin
    -- capture the report
    l_report_file := 'pmw41051';
    l_report_id := find_report_object(l_report_file);
    -- set the parameters for this output
    set_report_object_property(l_report_id, REPORT_EXECUTION_MODE, BATCH);
    set_report_object_property(l_report_id, REPORT_COMM_MODE, SYNCHRONOUS);
    set_report_object_property(l_report_id, REPORT_DESTYPE, CACHE);
    set_report_object_property(l_report_id, REPORT_DESFORMAT, 'PDF');
    set_report_object_property(l_report_id, REPORT_SERVER, 'rep_york_vrcmidtier');
    set_report_object_property(l_report_id, REPORT_OTHER, 'PARAMFORM=NO');
    set_report_object_property(l_report_id, REPORT_DESNAME, 'DESNAME');
    -- and run the report
    l_report_status := run_report_object(l_report_id);
    -- monitor progress
    while l_report_status in ('RUNNING', 'OPENING_REPORT', 'ENQUEUED') loop
    l_report_status := report_object_status(l_report_status);
    end loop;
    message('back from the report'); -- test message for return
    end;
    The report executes without error (as indicated by the message on the last line) but does NOT display back to the screen
    checking the rwservlet/showjobs verifies the report completed and the reportcan be displayed from there.
    So, bottom line: how to make a 10g form call report and display it on the screen?

    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;

  • Netscape 7 replaces form window when calling reports

    Netscape 7.0, unlike Netscape 4.7 does not handle forms application that calls on Reports to display Report preview in PDF.
    When our forms call reports to display a report to the user in the browser, the window on which the form screen is presented is replaced by the window which brings up adobe reader to display the report.
    IE 5.5, Netscape 4.7 work fine.
    Is there a configuration which must be set in Netscape or in the forms code to direct the browser to open a separate window to receive reports output?

    Lawrence,
    try calling it
    web.show_document('<URL'>,_blank);
    This should do it. In Forms9i this built-in is able to call out to javascript, giving you even more control over the window you use it in.
    Frank

  • Calling Reports from Web Forms

    Hi all,
    I have Forms and Reports services 10g running on Linux RHEL3, and it's all right so far, with only one application.
    Now I have to use another application, which has some forms and reports with same name as the first one. At this point I cannot use FORMS90_PATH and REPORTS_PATH anymore.
    I solved the problem about forms and icons (simply changing configuration files), and I found a solution for Reports, but this one obliges me to modify all forms calling reports. Of course I don't like it so much, and I'm wondering if someone has a solution without changing anything in the applications, as for forms and icons.
    Thanks in advance
    Paul

    Hi Martin,
    I'm afraid there was a little misunderstanding : I tried your solution, and it works fine for forms (but for forms I already had a solution, workingDirectory in the project section of formsweb.cfg).
    It doesn't work for reports : it seems that the only way to specify reports location is in reports.sh, but to make applications independent I should use different reports servers for different applications, not acceptable.
    Do you know a way to obtain the same result for reports (as for forms) without changing applications ?
    BTW, the solution should work on Windows OS too.
    Thanks again.

  • Call report from form10g.

    Hi all, i has one form and i want to call report name 'DOCK_RECEIPT' from Form.
    I create one button name ' CALL_REPORT', and want to when click into this button, form call report above.
    But i don't know configure Form and Report, and code for button "call_report".
    Now, how must i do for Form can call report?
    Please help me.

    how to run reports from 10g, check the following links
    How to run report from form 10g
    Oracle® Application Server Reports Services Publishing Reports to the Web
    http://docs.oracle.com/cd/B25016_04/doc/dl/bi/B14048_02/toc.htm
    Hope this will help you

  • Help: calling report from report in report 9i

    Background:
    1. Report Builder 9i and the outputs are PDF files;
    2. Report A and Report B both have two identical parameters: P1 and P2;
    3. Calling Report A through FORM using web.show_document() with paraform=YES,
    Help:
    If Report B can be called from Report A, the parameters P1, P2 passed through calling report A, the user then needs not to enter twice P1 and P2 using web.show_document().
    Wishful way of thinking:
    The Calling FORM refered here is the one that provides all buttons for more than 20 reports and that is the reason of using parameter form. Consequently, I am looking for ways of making:
    Calling FORM -> REPORT A -> REPORT B
    where both Report A and B have same parameters, calling FORM calls REPORT A using REPORT A parameter form and hoping that REPORT A can call REPORT B with these parameters.
    Any help are greatly appreciated.
    Jimmy

    I tried something in Before Report trigger like:
    function BeforeReport return boolean is
    begin
    srw.run_report('batch=yes sf1='||:pf1 || 'sf2='||:pf2 || ' report=REPORT_B destype=cache desformat=pdf');
    return (TRUE);
    end;
    An error raised as: REP-1428: 'beforereport': Error while running SRW.RUN_REPORT.
    Here sf1, pf1 and sf2, pf2 and two pairs of identical parameters.
    Any suggestions?

  • Calling Report from Form Error ORA-06508

    Dear all,
    I want migrate from Fom6i to Oracle Developer Suite 10g (10.1).
    Folder Form = C:\APLIORA\IRS\FORM
    Folder Report = C:\APLIORA\IRS\REPORT
    I have modified file DEFAULT.ENV
    FORMS_PATH=C:\APLIORA\IRS\FORM;C:\APLIORA\IRS\REPORT
    i do not have problem call a form from form.
    but when i call report from form show error ORA-06508 : PL/SQL : could not find program unit being called ; -6508
    my procedure is
    PROCEDURE Call_Report IS
         list_id ParamList;
    BEGIN
    list_id := Get_Parameter_List('input_params');
    IF NOT Id_Null(list_id) THEN
    Destroy_Parameter_List(list_id);
    END IF;
    list_id := Create_Parameter_List('input_params');
    Add_Parameter(list_id,'MAXIMIZE',TEXT_PARAMETER,'YES');
    Add_Parameter(list_id,'ORACLE_SHUTDOWN',TEXT_PARAMETER,'YES');
    RP2RRO.RP2RRO_RUN_PRODUCT(REPORTS,'TESTREPORT.REP',SYNCHRONOUS,RUNTIME,FILESYSTEM,list_id,null);
    END ;
    Do I miss something ?
    Can any one help ?
    Thanks

    Hi,
    Thank you for your replay.
    The problem have solved.
    This my step :
    1. Install Windows XP SP2 and Form 10.1.2.0.2 on new pc.
    2. Install Jinit version 1.3.1.28.
    3. Create report server
    3. Compile form, report and pll
    4. call report from from with this procedure :
    PROCEDURE Call_Report (vFILENAME varchar2) IS
    report_id                Report_Object;
    ReportServerJob VARCHAR2(100);
    vc_rep_status      VARCHAR2(100);
    repsvr                          varchar2(21) := 'myserv';
    userid                         VARCHAR2(100);
    pass                          VARCHAR2(100);
    Host                    VARCHAR2(100);
    BEGIN
    userid          := Get_Application_Property(USERNAME) ;
    pass          := Get_Application_Property(PASSWORD) ;
    Host          := Get_Application_Property(CONNECT_STRING) ;
    report_id:= find_report_object('REPORT');
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_FILENAME,vFILENAME||'.jsp');
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_COMM_MODE,SYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_SERVER,repsvr);
    ReportServerJob:=run_report_object(report_id);
    vc_rep_status := REPORT_OBJECT_STATUS(ReportServerJob);
    WHILE vc_rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED', null)
    LOOP
    vc_rep_status:=REPORT_OBJECT_STATUS(ReportServerJob);
    END LOOP;
    IF vc_rep_status='FINISHED' THEN
    WEB.SHOW_DOCUMENT('/reports/rwservlet?report='||vFILENAME||'.jsp'||'&userid='||userid||'/'||pass||'@'||Host||'&destype=CACHE&desformat=PDF&paramform=yes','_blank');
    ELSE
    message ('Report failed with error message '|| vc_rep_status);
    END IF;
    END;
    Ok, but i have another strange error. I will post new thread.
    Thank you and regards
    Teguh S

  • Calling reports 6i from Forms 9i

    Hi All,
    I am updating a menu application that we run from 6i to 9i. The menu app form is a list of reports. The runtime path for each report is returned to menu_link_all.path.th Works great in 6i form and reports however, I can not figure out how to get the same from the 9i form calling a 6i report.
    Here is the code I am using from the 6i form....
    PROCEDURE p_run_item IS
    -- parameter list
    pl_id     ParamList;
    pl_name     VARCHAR2(50) := 'pl_item_id';
    v_report     varchar2(100);
    BEGIN
    p_logon(:menu_link_all.schema_name, :menu_link_all.password,:menu_link_all.connection);
    if :menu_link_all.item_type = 'R' then
         set_report_object_property('view_report',report_filename,:menu_link_all.path);
    v_report := run_report_object('view_report');
    elsif :menu_link_all.item_type = 'F' then
    -- call modal form if connecting to any database other than qlqls/qlqls@qpro
    -- otherwise other open forms will also lose their connection to their respective databases
    if upper(:menu_link_all.schema_name) <> XXX'
    and upper(:menu_link_all.password) <> 'XXX'
    and upper(:menu_link_all.connection) <> 'XXX' then
    call_form(:menu_link_all.path,NO_HIDE,NO_REPLACE,NO_QUERY_ONLY,SHARE_LIBRARY_DATA);
    else
    open_form(:menu_link_all.path,activate, session, share_library_data);
    end if;
    elsif :menu_link_all.item_type = 'O' and :menu_link_all.web_item = 'Y' then
    web.show_document(:menu_link_all.path,'_self');
    else
    host(:menu_link_all.path);
    end if;
    END;
    Within the report property pallette filename := placeholder
    I did not write the original and am not sure why the filename is set to placeholder would appreciate knowing though
    Looking forward to your response
    Chris

    My TNS problems are a result of our Network guys insisting on deploying everything through Novell Application Launcher, and pushing down TNS with the apps. We currently run systems that talk to 7.3 client, 8 client and 9 client I do not need to tell you what happens when the techos that reimage PC (2000 odd) leaving the user to deploy each of their apps which of course they never do in the correct order etc etc etc....
    Will take your advice and stay with 6i as long as Oracle keep supporting it, hopefully one day they will realise that some of us need to operate in a client server environment.
    Cheers and thanks
    Chris

  • Forms hang when it call reports

    Hi there,
    In a one of my forms, there is button call report
    the report object property like following:
    name: report17
    filename: f:\ora9ias_bi\reports\report11.rdf
    execution mode: batch
    communication mode:synchronous
    report destination type:cache
    report destination format:html
    report server : repserver90
    the trigger for the button is
    eclare
         report_id report_object;
         v_rep     VARCHAR2(100);
         rep_status VARCHAR2(20);
    begin
         report_id:=FIND_REPORT_OBJECT('report17');
         v_rep:=RUN_REPORT_OBJECT(report_id);
         rep_status:=REPORT_OBJECT_STATUS(v_rep);
         WHILE rep_status in('RUNNING','OPENNING_REPORT','ENQUEUED')
         LOOP
              rep_status := REPORT_OBJECT_STATUS(v_rep);
         end loop;
         if rep_status = 'FINISHED'or rep_status IS NULL THEN
              WEB.SHOW_DOCUMENT('HTTP://watfapp2.wat.michelin.com:7778/reports/
              rwservlet/getjobid'||substr(v_rep,instr(v_rep,'_',-1)+1)||'?'||'server=repserver90','_blank');
         else
              message('Error when running report');
         end if;
         end;
         when I click the button, the forms hangs for very long time.
    Could you please shed some light on it? thanks in advance
    Lionel liu

    I change trigger like the following
    eclare
         report_id report_object;
         v_rep     VARCHAR2(100);
         rep_status VARCHAR2(20);
    begin
         message('before find');
         report_id:=FIND_REPORT_OBJECT('report17');
         message('before run');
         v_rep:=RUN_REPORT_OBJECT(report_id);
         message('after run');
         WEB.SHOW_DOCUMENT('HTTP://watfapp2.wat.michelin.com:7778/reports/
              rwservlet/getjobid'||substr(v_rep,instr(v_rep,'_',-1)+1)||'?'||'server=repserver90','_blank');
         rep_status:=REPORT_OBJECT_STATUS(v_rep);
         WHILE rep_status in('RUNNING','OPENNING_REPORT','ENQUEUED')
         LOOP
              rep_status := REPORT_OBJECT_STATUS(v_rep);
         end loop;
         if rep_status = 'FINISHED'or rep_status IS NULL THEN
              WEB.SHOW_DOCUMENT('HTTP://watfapp2.wat.michelin.com:7778/reports/
              rwservlet/getjobid'||substr(v_rep,instr(v_rep,'_',-1)+1)||'?'||'server=repserver90','_blank');
         else
              message('Error when running report');
         end if;
         end;
    it hang on the command
    report_id:=FIND_REPORT_OBJECT('report17');
    the reports_classpath in default.env is
    REPORTS_CLASSPATH=<ORACLE>/jlib/zrclient.jar;<oralce_home>/reports/jlib/rwrun.jar
    What could cause the command report_id:=FIND_REPORT_OBJECT('report17');
    hang on?
    thanks again
    Lionel

Maybe you are looking for

  • Oracle BI Publisher Vs BusinessObjects Enterprise XI

    Hi, It would be greatfula if any ioone explains thediffence between Oracle BI Publisher and BusinessObjects Enterprise XI regards ravindra

  • Billing Document with Reference to Delivery Doc

    Hi Guru's, Just wanted to know why thus my billing document still get the quantity in reference to sales doc even my item category settings in VOV7 has Billing Relevance = 'A'. Note that my doc floow has.. SO>DEL>G.I.-->BILLING. Thank you in advance.

  • 10.1.3 EA3 Visual editor & servlet filter problem

    I have a problem with jsp visual editor after I add filter servlet into web.xml file. When I chage view of visual editor to Design page I can't see page preview. I enable "Show design time messages in log" option, I get the following messages in log:

  • Can't move playlist to my sonos

    Sonos won't allow me to change playlist. I can use radio, but not playlists.

  • How to install Java to compile Sevlets at command prompt

    Please help me to compile my java servlets at command prompt. I have buyed a new leaptop with windows XP service pack 2 I have downloaded Java EE 5 SDK Update 4 (with JDK 6u5) for Windows, English I setted my path and classpath variable for bin and l