How to run report from form 10g

Dear All,
I have code of forms 6i that i used to run report. but when i run this code through forms 10g this gives message that use RUN_REPORT_OBJECT instead.
please convert my code to 10g .
==============================================
pl_id:=Get_Parameter_List('tmpdata');
     IF NOT Id_Null(pl_id) THEN
          Destroy_Parameter_List(pl_id);
     END IF;
     pl_id:=Create_Parameter_List('tmpdata');
     Add_Parameter(pl_id, 'PARAMFORM', TEXT_PARAMETER, 'NO');
     Add_Parameter(pl_id, 'P_FROM', TEXT_PARAMETER,:FROM);
     Add_Parameter(pl_id, 'P_TO', TEXT_PARAMETER, :TO);
Run_Product(REPORTS,'ANNEX_B_CONSTRUCTION_QUALITY',SYNCHRONOUS,RUNTIME,FILESYSTEM,pl_id);
=======================================================
Many thanks

Some sample code. Create REPORT1 under Report node of the form.
DECLARE
  PL_ID                 ParamList;          
  v_rep_id          REPORT_OBJECT;               
  v_rep            VARCHAR2(200);               
  v_rep_file        VARCHAR2(100); --Added to change create a unique file each time report created.
  v_tmp_path                         varchar2(250);
BEGIN
v_rep_id := FIND_REPORT_OBJECT('REPORT1');
v_rep_file:=USER||'_'||to_char(SYSDATE,'DDMMYYYY_HH24MISS');
pl_id:=Get_Parameter_List('tmpdata');
IF NOT Id_Null(pl_id) THEN
Destroy_Parameter_List(pl_id);
END IF;
pl_id:=Create_Parameter_List('tmpdata');
Add_Parameter(pl_id, 'PARAMFORM', TEXT_PARAMETER, 'NO');
Add_Parameter(pl_id, 'P_FROM', TEXT_PARAMETER,:FROM);
Add_Parameter(pl_id, 'P_TO', TEXT_PARAMETER, :TO);
--Run_Product(REPORTS,'ANNEX_B_CONSTRUCTION_QUALITY',SYNCHRONOUS,RUNTIME,FILESYSTEM,pl_id);
SET_REPORT_OBJECT_PROPERTY(v_rep_id,REPORT_FILENAME, 'tested_part_report'||'.rdf');
SET_REPORT_OBJECT_PROPERTY(v_rep_id,REPORT_DESTYPE,FILE);
SET_REPORT_OBJECT_PROPERTY(v_rep_id,REPORT_DESFORMAT,'pdf');
SET_REPORT_OBJECT_PROPERTY(v_rep_id,REPORT_DESNAME,v_tmp_path||v_rep_file||'_Tested_Part_Report.pdf');
v_rep := RUN_REPORT_OBJECT(v_rep_id,PL_ID); 
--You should have a virtual path set as /output/ in Application server
--Show the pdf output create in the folder mapped to output
Web.Show_Document('/output/'||v_rep_file||'_Tested_Part_Report.pdf','_blank');     
END;You need to put the files in the path (As set in the registry of application server) . Needed application server knowledge to deploy the reports.
Edited by: Lokanath Giri on २२ दिसंबर, २०११ ११:०३ पूर्वाह्न
Edited by: Lokanath Giri on २२ दिसंबर, २०११ ११:५९ पूर्वाह्न

Similar Messages

  • I've interview tomorrow , still do not know how to run report from forms

    hi all ,
    i asked before about running report from forms 10g rel2 , but vainly , because i could not configure the reports server ,
    and no one told me .
    now i've an interview tomorrow , and sure it will be included in the task which i have to do .
    i am in a bad need for your step by step help
    thanks in advance

    Excuse me for being lazy and not searching your previous threads containing questions about configuring your reports server. As I don't know their content I don't know the links posted, the advices given and what you did, and as this is a new thread I'll go ahead and ask what you tried, where you failed and what exactly did not work out for you.
    i am in a bad need for your step by step help Fine, here is an easy one:
    Step 1: go to http://tahiti.oracle.com
    Step 2: click on "Oracle Application Server, 10g Release 2 (10.1.2)"
    Step 3: click in the searchbox, type "Configuring Reports Server"
    Step 4: click "search"
    Step 5: You will be redirected to some links, the very fist of them is this:http://docs.oracle.com/cd/B14099_19/bi.1012/b14048/pbr_conf.htm
    This is as step-by-step as it gets, if you want detailed help ask detailed questions.
    cheers

  • How to run report from form using run_object_report

    I AM USNING FORMS9I/REPORTS 9I , HOW TO RUN REPORT FROM FROM USING RUN_REPORT_OBJECT AND HOW
    TO PASS PARAMETER AS WE DID IN RUN_REPORTS PLEASE HELP ME

    here an example !
    I hope this example you can use it
    PROCEDURE pr_reporte IS
    BEGIN
    DECLARE
         repid REPORT_OBJECT;
    v_rep VARCHAR2(100);
    rep_status Varchar2(20);
    d1 DATE;
    d2 DATE;
    BEGIN
         d1 := :GLOBAL.DIA_INI;
         d2 := :GLOBAL.DIA_FIN;
         repid := find_report_object('rep_lab02');
         SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER,'p_fec_uno='||to_char((add_months(last_day(d1),-1) +1),'DD/MM/YYYY')||' '||
         'p_fec_dos='||to_char(d2,'DD/MM/YYYY'));
         SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'pdf');
         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
              WEB.SHOW_DOCUMENT('/reports/rwservlet/getjobid'||substr(v_rep,instr(v_rep,'_',-1)+1)||'?'||'server=repserver','_blank');
         ELSE
              ventana('E','error reporte no encontrado','S');
         END IF;
    END;
    END;
    The 'rep_lab02' is the name of the report that you give in the node reports
    p_fec_uno and p_fec_dos they are the parameters in the report
    repserver is the name of server created with rwserver
    Greetings

  • How to run report from forms

    hi all,
    i have tried to run report from forms using below codig(got from online help)
    DECLARE
         repid REPORT_OBJECT;
         v_rep VARCHAR2(100);
         rep_status varchar2(20);
         v_host varchar2(100):= 'localhost';
    v_port varchar2(10);
    v_parameter_string varchar2(4000);
    v_username varchar2(50);
    v_password varchar2(50);
    v_database varchar2(50);
    BEGIN
         repid := find_report_object('REPORT27');
         v_rep := RUN_REPORT_OBJECT(repid);
         rep_status := REPORT_OBJECT_STATUS(v_rep);
         if rep_status = 'FINISHED' then
              message('Report Completed');
              copy_report_object_output(v_rep,'E:/Rep/local1.pdf');
    --     host('MOZILLA E:/Rep/local.pdf');
    -- WEB.SHOW_DOCUMENT('http://192.168.0.160:1521/reports/rwservlet/getjobid'||
    -- substr(v_rep,instr(v_rep,'_',-1)+1)||'?'||'server=repserver','_blank');
              else
         message('Error when running report.');
              end if;
              -- Get the full domain name of the server from the formsweb.cfg
    tool_env.getvar('SERVER_URL',v_host);
    -- Get the username/password and database from the .env file
    tool_env.getvar('APPLICATION_USERNAME',v_username);
    tool_env.getvar('APPLICATION_PASSWORD',v_password);
    tool_env.getvar('APPLICATION_DATABASE',v_database);
    -- If it is localhost then we are running on windows and need to use the windows port, otherwise we
    -- are on AIX and need to use the AIX port
    IF v_host = 'localhost' THEN
         v_port := '8889';
    ELSE
         v_port := '8889';
    END IF;
    -- Now build the parameter string for running the report      
    v_parameter_string := 'server=repserver';
    v_parameter_string := v_parameter_string||'&report= E:\AGE_NoELIGIBLEReport.rdf';
    v_parameter_string := v_parameter_string||'&userid='||v_username||'/'||v_password||'@'||v_database;
    v_parameter_string := v_parameter_string||'&execution_mode=batch';
    v_parameter_string := v_parameter_string||'&comm_mode=synchronous';
    v_parameter_string := v_parameter_string||'&destype=cache';
    v_parameter_string := v_parameter_string||'&desformat=pdf';
    -- Now run the report
    web.show_document('http://'||v_host||':'||v_port||'/reports/rwservlet?'||v_parameter_string,'_blank');
    END;
    REP-110: Unable to open file ' AGE_NoELIGIBLEReport.rdf'.
    REP-1070: Error while opening or saving a document.
    REP-0110: Unable to open file ' AGE_NoELIGIBLEReport.rdf'.
    but i hav report in e:\ then why its getting?

    Hi,
    I suggest you not to use the "E:\" directory letter, but the REPORTS_PATH instead.
    <p>
    from the Online Help
    </p>
    <p>
    On Windows, edit environment variables through the Registry Editor (Start > Run > Regedit).
    </p>
    <p>
    On UNIX, edit environment variables by revising and running the shell script that defines the initial default values (reports.sh). If you do this, be sure to keep a backup of the original, unaltered reports.sh file.
    </p>
    <p>
    Regards
    JeanYves
    </p>

  • How to run report from forms 6i

    i want to run report from forms 6i.
    can anyone help me in this regard.
    asif iqbal
    karachi.

    hi
    try something like this.
    parameter_list_id := CREATE_PARAMETER_LIST('temp_data');
            mywhere:='where 1=1';
            if :RESULT_VALUE is not null then
                  mywhere:=mywhere || ' and diagnosis like ''%'||:RESULT_VALUE||'%''';
            end if;
            if :HISTORY is not null then
                  mywhere:=mywhere || ' and histodesc like ''%'||:HISTORY||'%''';
            end if;
            if :RCOMMENTS is not null then
                  mywhere:=mywhere || ' and scomments like ''%'||:RCOMMENTS||'%''';
            end if;
            if :PATHOLOGIST is not null then
                  mywhere:=mywhere || ' and PATHOLOGISTS like ''%'||:PATHOLOGIST||'%''';
            end if;
                mywhere:=TRANSLATE(mywhere,' ','~');
                ADD_PARAMETER(parameter_list_id,'MYWHERE',TEXT_PARAMETER,mywhere);
          RUN_PRODUCT(REPORTS,'C:\SearchResult.RDF',SYNCHRONOUS,RUNTIME,FILESYSTEM,parameter_list_id,NULL);
          ADD_PARAMETER(parameter_list_id,'PARAMFORM',TEXT_PARAMETER,'NO');
          DESTROY_PARAMETER_LIST(parameter_list_id);and also u can try the following code please modify it with u r requirements.
    declare
    v_plist_id paramlist;
    pl_name varchar2(50) := 'rep_params';
    begin
    v_plist_id := get_parameter_list(pl_name);
    check_param_list (pl_name); --Check availability of paramlist and
    destroy is present
    --When the parameter list already exists it needs to be distroyed first
    if not id_null(v_plist_id) then
    destroy_parameter_list(v_plist_id);
    end if;
    v_plist_id := create_parameter_list(pl_name);
    add_parameter(v_plist_id, 'P_1', text_parameter, :block_name.item);
    -- input parameter
    add_parameter(v_plist_id, 'PARAMFORM', text_parameter, 'NO'); --
    suppress the display of the Reports p-form
    add_parameter(v_plist_id, 'DESTYPE', text_parameter,
    :control.dest_type); -- set file destination type
    add_parameter(v_plist_id, 'DESNAME', text_parameter,
    :control.dest_name); -- set file destination name
    add_parameter(v_plist_id, 'DESFORMAT', text_parameter,
    :control.dest_format); -- set file destination format
    -- call reports
    run_product(reports, 'reports_file', asynchronous, runtime,
    filesystem, v_plist_id, null);
    end;sarah

  • Urgent: how to run report from forms runtime

    hi
    can anybody tell me how to call reports in forms through menu
    i just forgot how to call...
    exact menu item code!!
    rgds,

    Dear
    if u are using client server then use this code
    Run_Product(REPORTS, 'd:\emp.rep', ASYNCHRONOUS, RUNTIME,
    FILESYSTEM, 'x', NULL);
    if u r wsing web then use this code
    Web.Show_Document('/reports/rwservlet?server=myrepserv&report=test.rdf&userid=scott/tiger@mydb&desformat=pdf&destype=c
    ache&paramform=yes', '_blank');
    M Rizwan

  • How to run report from form in DS9I

    Hi,
    Can anybody guide me how to run the webreport from the form by passing some parameter from form to report
    by using Oracle developer 9i
    thanks

    Try
    http://otn.oracle.com/products/forms/pdf/frm9isrw9i.pdf
    You'll find there all what you need

  • Replacement routine for running reports from Forms 10G?

    Hi,
    I have the following routine that I have been using in Forms 6i to run all of my system reports. I know that Run_Product can no longer be used in 10G and has to be replaced with RUN_REPORT_OBJECT, but can anyone suggest a suitable replacement routine that can be called from my 10G Forms (to avoid getting the FRM-41842 message)?
    Many thanks,
    Keith.
    PROCEDURE RUN_REPORT (IN_RPTNAME IN CHARACTER) IS
    pl_id ParamList;
    BEGIN
    pl_id := Get_Parameter_List('tmpdata');
    IF NOT Id_Null(pl_id) THEN
    Destroy_Parameter_List( pl_id );
    END IF;
    pl_id := Create_Parameter_List('tmpdata');
    Add_Parameter(pl_id, 'MAXIMIZE', TEXT_PARAMETER, 'YES');
    Run_Product(REPORTS, '..\Reports\'||IN_RPTNAME, SYNCHRONOUS, RUNTIME,
    FILESYSTEM, pl_id, NULL);
    END;

    attached link should provide you a clear concept:
    http://www.oracle.com/technology/products/forms/pdf/frm9isrw9i.pdf

  • Running report from forms 10g with parameters

    db and dev 10g ,
    hi all , my report displays "sal and ename" columns of scott/tiger schema .
    i've seen a lot of articles talking about this but i want you to help me to get it :
    1- i want to run report by assigning a value to the "report other" property of the report object .
    i've tried it like so , i wrote sal = 800 or ename = 'SCOTT' in that property "report other" . and it did not work .
    2- and i want to how to do the same with "set_report_object('myrep',report_other,..........) ;
    3- i did it before with a parameter list by creating a parameter in the report builder called "p_sal" and p_ename then
    created a parameter list with :sal and :ename text_items as parameters then added the parameter list to
    run_report_object('myreport',pl) and it did not work too .
    please clarify these to me
    thanks a lot

    newbi_egy wrote:
    SET_REPORT_OBJECT_PROPERTY(ro,REPORT_OTHER, 'p_deptno='||:dept.deptno||'paramform=no');
         v := run_report_object(ro) ;
         web.show_document('http://rocky:8889/reports/rwservlet/getjobid'||substr(v,instr(v,'_')+1)||'?server=rocky','_blank') ;
         end ;
    when i press the button , FRM-41214 shows up in the form , and REP-52251 ,and i still can not run it .
    do i miss something ?
    by the way , when i typed this in the address bar :
    http://rocky:8889/reports/rwservlet/showjobs?server=rocky , then clicked "x" button , then
    i got this
    <br>REP-300: invalid number where deptno = : ==> p_deptno finished with error
    thanks
    Hi,
    You can not check the second link i provided where parameter passing issue is clearly mentioned. you should give space before all parameter.
    Check the second link, it will help you. And for your correction
    SET_REPORT_OBJECT_PROPERTY(ro,REPORT_OTHER, 'paramform=no p_deptno='||:dept.deptno);Hope you understand...
    Hamid

  • Running report from Forms 10g?

    I have a 10g report that has a parameter form in it that I'm running from a 10g form using the method described in the whitepaper "Oracle Forms Services – Using Run_Report_Object() to call Reports with a parameter form".
    When I run the report from the form the html parameter is displayed like the whitepaper describes but I'm getting the Rep-0546: Invalid parameter input. Anybody know what's cauising this error.

    I've upgraded the report from 4.5 so there aren't any quotes in it. If I run the report with paramform=no and pass a parameter to the report it runs fine. The problem is that I need the report to run both ways. The one thing that I've found that is strange is the reports parameter has a validation trigger on it and if I remove the trigger from the report the parameter form isn't displayed at all and I get a blank report. I'm running the report to Cache and displaying it using web.show_document.

  • REP 110 & REP 0110 .calling reports from Form 10g(10.1.2.0.2)

    Hi All,
    We are migrating form from Oracle form 6i to Oracle 10g(10.1.2.0.2). I am calling reports from forms
    using Web.Show_Docment(). When we run reports in report builder 10g it works fine.
    But when we try to run reports from Forms 10g it throws error which is given below.
    We want to run reports from UNIX. After using this url to submit report we get error REP 110 and REP 0110
    URL
    http://GEM:7777/reports/rwservlet?server=rep_server&report=/u01/forms/QA_Forms10g/GEMREP.rdf+DESTYPE=CACHE+DESFORMAT=HTML+p_user_id=XYZ+p_client=2
    ERROR
    REP-110: File '/u01/forms/QA_Forms10g/GEMREP.rdf DESTYPE=CACHE DESFORMAT=HTML p_user_id=XYZ p_client=2' not found.
    REP-0110: Unable to open file '/u01/forms/QA_Forms10g/GEMREP.rdf DESTYPE=CACHE DESFORMAT=HTML p_user_id=XYZ p_client=2'.
    I will really appreciate your help.
    Thanks
    Sandy

    Hello,
    You are mixing 2 separators in the URL : & and +
    Use only one separator in the URL :
    Example :
    http://GEM:7777/reports/rwservlet?server=rep_server+report=/u01/forms/QA_Forms10g/GEMREP.rdf+DESTYPE=CACHE+DESFORMAT=HTML+p_user_id=XYZ+p_client=2
    Regards

  • Problem in running oracle report from form 10g Version 10.1.2.0.2

    Hi All,
    I am facing problem while running the report from forms 10g getting FRM-41219
    For this i am using the following procedure :
    PROCEDURE RUN_REPORT IS
    L_RUN_TEXT VARCHAR2 (2000);
    L_USRID VARCHAR2 (100);
    L_PASSWD VARCHAR2 (100);
    L_DESNAME VARCHAR2 (100);
    FILE_OUT_PUT VARCHAR2(200);
    REP_STATUS VARCHAR2(20);
    REP_NAME VARCHAR2(50);
    PL_ID PARAMLIST;
    REP_URL VARCHAR2(2000);
    V_REP VARCHAR2(200);
    BEGIN
    display_me('RUN_REPORT');
    -- CALL THE FOLLOWING FUNCTION, IN WHICH USER CAN WRITE HIS OWN CODE.
    -- THE PROCEDURE CAN BE MADE LOCAL TO THE SPECIFIC FORM AND WRITE THE CODE.
    -- IT SHOULD RETURN 'Y', IF YOU WANT TO PROCEED WITH THIS RUN_REPORT
    -- PROCEDURE.
    IF NVL (RUN_REPORT1, 'Y') = 'N' THEN
    RETURN;
    END IF;
    COMMIT_FORM;
    IF (GET_APPLICATION_PROPERTY (OPERATING_SYSTEM)) = 'UNIX' THEN
    L_DESNAME := 'LP';
    ELSE
    L_DESNAME := NAME_IN ('REPORT_TITLE.F_FILE_NAME');
    display_me(L_DESNAME);
    END IF ;
    /* SETTING THE REPORT OBJECT PROPERTIES */
    /* G_PRAM1 IS THE NAME OF REPORT ****/
    SET_REPORT_OBJECT_PROPERTY('REPOBJ',REPORT_EXECUTION_MODE,BATCH);
    SET_REPORT_OBJECT_PROPERTY('REPOBJ',REPORT_COMM_MODE,SYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY('REPOBJ',REPORT_DESTYPE,CACHE);
    SET_REPORT_OBJECT_PROPERTY('REPOBJ',REPORT_DESFORMAT,'PDF');
    SET_REPORT_OBJECT_PROPERTY('REPOBJ',REPORT_SERVER,'172.18.76.34');
    SET_REPORT_OBJECT_PROPERTY('REPOBJ',REPORT_FILENAME,:GLOBAL.G_PARAM1||'.REP');
    display_me(':GLOBAL.G_PARAM1 '||:GLOBAL.G_PARAM1);
    PL_ID := GET_PARAMETER_LIST ('REP_PARA');
    IF NOT ID_NULL (PL_ID) THEN
    DESTROY_PARAMETER_LIST ('REP_PARA');
    END IF;
    PL_ID := CREATE_PARAMETER_LIST('REP_PARA');
    ADD_PARAMETER (PL_ID, 'DESTYPE' , TEXT_PARAMETER, NAME_IN ('REPORT_TITLE.RAG_DESTINATION') );
    ADD_PARAMETER (PL_ID, 'DESNAME' , TEXT_PARAMETER, L_DESNAME);
    ADD_PARAMETER (PL_ID, 'COPIES' , TEXT_PARAMETER, NAME_IN ('REPORT_TITLE.F_NO_COPY') );
    ADD_PARAMETER (PL_ID, 'ORIENTATION', TEXT_PARAMETER, 'LANDSCAPE');
    ADD_PARAMETER (PL_ID, 'MODE' , TEXT_PARAMETER, 'BITMAP');
    ADD_PARAMETER (PL_ID, 'PARAMFORM' , TEXT_PARAMETER, 'NO');
    ADD_PARAMETER (PL_ID, 'PARAM' , TEXT_PARAMETER, NAME_IN ('IBP_REPORT_PARAMETER.F_REP_SEQ') );
    ADD_PARAMETER (PL_ID, 'P_COMP_CODE' ,TEXT_PARAMETER,:GLOBAL.G_COMP_CODE);
    display_me(':GLOBAL.G_COMP_CODE '||:GLOBAL.G_COMP_CODE);
    REP_NAME := :GLOBAL.G_PARAM1||'.REP';
    display_me('REP_NAME'||REP_NAME);
    V_REP := RUN_REPORT_OBJECT('REPOBJ');
    display_me('V_REP '||V_REP);
    REP_STATUS := REPORT_OBJECT_STATUS(V_REP);
    display_me('REP_STATUS'||REP_STATUS);
         WHILE REP_STATUS IN ('RUNNING','OPENING_REPORT','ENQUEUED')LOOP
    REP_STATUS := REPORT_OBJECT_STATUS(V_REP);
    END LOOP;
    IF REP_STATUS = 'FINISHED' THEN
    REP_URL:='/REPORTS/RWSERVLET/GETJOBID'||SUBSTR(V_REP,INSTR(V_REP,'_',-1)+1)||'?'||'SERVER=172.18.76.34';
    display_me('REP_URL '||REP_URL);
    WEB.SHOW_DOCUMENT(REP_URL,'_BLANK');
    ELSE
    MESSAGE('ERROR WHEN RUNNING REPORT');
    END IF;
    END;
    Which is called on a button , can any body share there idea to help out
    Warm Regards
    Ashutosh

    Yes, I have replace the userid with scott/tiger@orcl with i6menu/i6menu@vbs and also replace the OAS server's name as you have suggested.
    declare
         REP_URL varchar2(2000);
    begin
    REP_URL:= '/reports/rwservlet?userid=i6menu/i6menu@vbs&report=testrep_10g.rdf&desformat=pdf&destype=cache&paramform=no';
    WEB.SHOW_DOCUMENT(REP_URL,'_BLANK');
    end;
    I had the 2nd code also but both r not working on my machine ......... !!
    I have made the following setting on my machine:
    1. Registry -> HKEY_LOCAL_MACHINE -> SOFTWARE-> ORACLE-> KEY_DevSuiteHome1->FORMS_PATH ->
    Values is : D:\vision_soft\VSS\exe
    2. Registry -> HKEY_LOCAL_MACHINE -> SOFTWARE-> ORACLE-> KEY_DevSuiteHome1->REPORTS_PATH ->
    Values is : D:\vision_soft\VSS\exe
    3. Entry made in the DevSuiteHome_1\forms\server ->default.env
    FORMS_PATH=D:\vision_soft\VSS\exe
    4. Entry made in the DevSuiteHome_1\reports\confr ->rwservlet.properties
    #SERVER= rep10
    As my forms is working well & but the report are not able to call.
    Could you please let me know is there is any other mandatory setting required for the report 10g.
    Regards,
    Ashutosh

  • 10g Run Report from Form

    Oracle 10g Developer suite
    using OC4J
    hi experts
    can you please share some code here to run report from form with and without passing parameters.
    regards

    Try This
    Declare
    v_connect     VARCHAR2 (200)  := 'userid=nisadmin/nisadmin@abc';
    v_report_name     VARCHAR2(100)   := 'Voucher.rdf';
    v_format     VARCHAR2(12)    :='Htmlcss';
    Begin
    Web.Show_Document('http://hoitvoltes5:9002/reports/rwservlet?'||v_connect||'&server=ReportsServer_HOITVOLTES5_asin&destype=cache&report='||v_report_name||'&desformat='||v_format||'&companyid='||:voucher.companyid||'&vouno='||:voucher.vouno,'_blank');
    End;

  • Running reports from forms on the web

    On forms and reports 6i we used the following code to run reports from forms.
    We need to do the same on 9i forms and reports, we are running into problems.
    Any help will be appreciated.
    PROCEDURE web (inFileName VARCHAR2,
    inRecordGroup RECORDGROUP) IS
    outVirtualPath VARCHAR2(200) := '/forms90/f90servlet?p_url=/reports/rwservlet?'; outServer VARCHAR2(200) := 'server=rep_ora-app-4';
    outReport VARCHAR2(200) := 'report='||inFileName;
    outUserid VARCHAR2(200) :=
    'userid='||GET_APPLICATION_PROPERTY(USERNAME)||'/'||GET_APPLICATION_PROPERTY(PAS
    SWORD)||'@'||GET_APPLICATION_PROPERTY(CONNECT_STRING);
    outDesType VARCHAR2(200) := 'DESTYPE=CACHE';
    outDesFormat VARCHAR2(200) := 'DESFORMAT=PDF'; outUser VARCHAR2(2000);
    outCount INTEGER;
    error we are getting.
    FRM-42017:Module name must be specified.

    S Hatch (guest) wrote:
    : I'm thinking that you're going to have to install the Reports
    : cartridge, create an entry in the keymap with any parameters
    and
    : call your report via the url.
    : Dessislava Gantcheva (guest) wrote:
    : : How do I call a report from a form on the web?
    : : I have installed Windows NT Server 4.0 with SP 5, OAS4.0.7
    EE
    : : with patch 1, Developer 6.0 with patch 1. Developer server
    and
    : : forms server work fine in a non-cartridge implementation,
    but
    : I
    : : cannot run a report within a form. I just have no any info
    how
    : : to do this.
    I have entries in my keymap file and I can call my reports via
    the url, but I cannot run a report WITHIN a form. I mean to call
    a report by clicking on a button of a form on the web. The
    RUN_PRODUCT built-in does not work (at leas it seems like this)
    If any one has expiriense with it, please, give me a hint.
    Thanks
    null

  • When run report from form(6i) on the web,error FRM-921000

    While I was trying to run report from form (6i)on the web,it will give me this error
    message FRM-921000 and hang.
    But when I try to call form using form,I do
    not have the problem.
    May I know ehat is the cause?
    Anybody encounter this before?
    Thanks
    null

    I am running Forms 6i on the web and attempting to call me report via RUN_REPORT_OBJECT. I am getting the same error as Jenny FRM-92100. I need to pass a parameter list so I don't think I can use WEB.SHOW_DOCUMENT. Any ideas???
    Thanks,
    Jenny N.
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Joseph Schwertner ([email protected]):
    Dear Jenny,
    I am running reports from Forms 6i on the WEB. I did not encounter your problem. Nevertheless I would like to share the following with you.
    RUN_PRODUCT doesn't work for calling reports ON THE WEB. Instead using RUN_PRODUCT do the following:
    1. Install Oracle Reports Server
    2. For WEB calls of reports use WEB.SHOW_DOCUMENT
    3. Learn how to pass parameters to the reports. It is a litlle bit strange, but it is explaint excellent in the documentation to the Reports Server.
    I hope this will help you.
    Joseph Schwertner
    <HR></BLOCKQUOTE>
    null

Maybe you are looking for