Calling Crystal Reports from Oracle Forms 6i

Hello
I am trying to invoke/call Crystal Reports from Forms 6i.
I have created OCX Item, while right click on item and insert-object, i am unable to see "Crystal Report" Control.
I have installed crystal Reports 2008 (Version 12) and CR Standard Production version 9.
Is there any Active X control registration in forms.
I could see "Crystal Report Viewer Control 9" and "Crystal Report Print Control 12.0"
Could some one help me,
Thanks
Tumuganti

Did u Succeed in calling crystal Reports XI from Forms 6i
or from Forms10g
for me also the same Requirement
please send any document ,Attachment ,steps to call Crystal Reports XI from Forms
[email protected]
Message was edited by:
user501763

Similar Messages

  • URGENT!!! calling crystal reports from oracle forms 10g

    Is it possible to call crystal reports from oracle forms 10g?
    Can someone help to answer how, if there is a solusion, to call crystal reports from oracle forms 10g.
    Please provide codes with details showing step by step.
    Thanks

    hi
    try something like this.
    DECLARE
    charWinHandle VARCHAR2(50);
    numWinHandle NUMBER;
    BEGIN Set_Application_Property(Cursor_Style,'BUSY');
    charWinHandle := Get_Item_Property('Control.Rep',Window_Handle);
    numWinHandle := To_Number(charWinHandle);
    :Item('Control.CrystalReport1').OCX.Crystal.Crysta lReport.WindowParentHandle
    := numWinHandle;
    :Item('Control.CrystalReport1').OCX.Crystal.Crysta lReport.WindowState := 2;
    :Item('CONTROL.CRYSTALREPORT1').OCX.Crystal.Crysta lReport.Connect
    := 'DSN=;UID=' || Get_Application_Property(UserName) ||
    ';pwd=' || Get_Application_Property(password) || ';dsq=;';
    Crystal_CrystalCtrl.ReportFileName( :Item('Control.CrystalReport1').interface,
    'C:\Sample_Rep.Rpt' );
    Set_Window_Property( Forms_Mdi_Window, Window_State,Maximize );
    Set_Window_Property( 'MAIN', Window_State, Maximize );
    :reptitle := 'Report Preview Window';
    numWinHandle := Crystal_CrystalCtrl.PrintReport( :Item('Control.CrystalReport1').interface );
    Set_Application_Property(Cursor_Style,'DEFAULT');
    END;NOTE: Change the report name and path according to your required file name and path in
    the "Crystal_CrystalCtrl.ReportFileName" method call. Also, the connection string shown
    assumes that you will use the current USER and PASSWORD for the Form.
    - To make the above Form generic so that you can run any Crystal report from it, then create
    a parameter for the report name and pass it to the Form using CALL_FORM from any other Form.
    Then just replace the file name with the passed parameter.
    -. Run the Form
    If its correct/helpful please mark it thanks.
    sarah
    Edited by: S@R@h on Nov 27, 2009 6:33 AM

  • Calling Crystal Reports from Oracle Forms 10G

    Hi everyone,
    I am trying to call a crystal report from Oracle Forms 10G.
    I have a button on my Form which when clicked calls a Crystal Report which the uaser then wants to save as a PDf file.
    Can someone please send me the code to do this and also the exact steps that are to be followed.
    Thanks
    Fm.

    Hi Andreas,
    I am trying to call the crystal report from an Oracle Form using a URL. No batch file is being used here.
    I am looking for a peice of code similar to run_product or run_report built in in Oracle which calls an Oracle report from an Oracle Form.
    Also I dont want to display the report on a screen or a window in Oracle Forms. I would like it to run just as we run an Oracle Report from an Oracle Form.
    Is that possible ? If yes please let me know the steps to do this.
    Thanks
    Faiz
    Edited by: IQ on May 13, 2011 11:38 AM

  • Is it possible to call a Crystal Report from Oracle Forms.

    Hi Everybody,
    I got a Dout about Crystal Reports. Is it possible to call Crystal Reports from Oracle Forms.

    Hello,
    That depends are you running Forms via the WEB or client/server. I will assume you are running client/server since you are running crystal reports. The answer is yes. All you will have to do is use the HOST command or the win_api_shell to run the report. Look in the Forms manual for information on the commands and what else you may need.
    John

  • How to invoke crystal reports from Oracle forms 11g R2 along with passing p

    How to invoke crystal reports from Oracle forms 11g R2 along with passing parameter to it.
    how to pass parameters to crystal report, please help.

    how to pass parameters to crystal report, please help.This would entirely depend on crystal reports and you might find informations on crystal reports related communities more likely...I for one have seen crystal reports the last time about 12 years ago. And even back then I simply acknowledged it's existence instead of working with it.
    Maybe crystal reports can be invoked via a URL call which would make it simple as you'd need simply build an URL and show the report using web.show_document. But that's pure speculation. Also you might not be the first with this requirement, so the solution to your problem might be right under your nose and just a little google search away ;)
    cheers

  • Calling a report from oracle form 10g

    how to call a report from oracle form 10g

    Please see the link:
    http://www.oracle.com/technology/products/forms/pdf/10g/frm10gsrw10g.pdf

  • Call Oreacle report from Oracle form

    Hi,
    I need call a Oracle report from Oracle Form and found the the following procedure from this forum. I have 2 parameters 'start_date' and 'end_date' passing to called report. The following example just have onle parameter
    'departmentno' passing. Is that mean I need to call add_parameter twice like the following?
    add_parameter(plid, ''start_date' , TEXT_PARAMETER,:control.start_date);
    add_parameter(plid, ''end_date' , TEXT_PARAMETER,:control.end_date);
    In the following example:
    add_parameter(plid, 'departmentno', TEXT_PARAMETER,to_char(:dept.deptno));
    Thanks for clarification!!
    Michael
    PROCEDURE pass_parameter
    IS
    plid paramlist;
    the_param varchar2(15) := 'tmpdata';
    BEGIN
    plid := get_parameter_list(the_param);
    /* check if 'tmpdata' exists */
    IF NOT id_null(plid) THEN
    destroy_parameter_list(plid);
    END IF;
    /* if it does destroy it */
    plid := create_parameter_list(the_param);
    /* create it afresh */
    add_parameter(plid, 'departmentno', TEXT_PARAMETER,to_char(:dept.deptno));
    /* associate the param in the form with the param in the report */
    add_Parameter(plid, 'PARAMFORM', TEXT_PARAMETER, 'NO');
    /* to suppress the parameter form displaying */
    run_product(REPORTS, /* product name */
    'formrep.rdf', /* Oracle Reports module */
    SYNCHRONOUS, /* communication mode */
    RUNTIME, /* execution mode */
    FILESYSTEM, /* location of the Reports module */
    plid, /* handle to the parameter list */
    null
    END;

    this my code on when_button_press
    declare
    rec_grp recordgroup;
    col1 groupcolumn;
    col2                    groupcolumn;
    col3                    groupcolumn;
    col4                    groupcolumn;
    col5                    groupcolumn;
    col6                    groupcolumn;
    col7                    groupcolumn;
    col8                    groupcolumn;
    pl_id paramlist;
    i number :=1;
    begin
    rec_grp := find_group('emp_rec');
    if not id_null(rec_grp) then
    delete_group(rec_grp);
    end if;
    rec_grp := create_group('emp_rec');
    col1 := add_group_column('emp_rec','Empno',CHAR_COLUMN,8);
    col2 := add_group_column('emp_rec','Ename',CHAR_COLUMN,30);
    col3 := add_group_column('emp_rec','job',CHAR_COLUMN,15);
    col4 := add_group_column('emp_rec','Mgr',CHAR_COLUMN,8);
    col5 := add_group_column('emp_rec','Hiredate',DATE_COLUMN,10);
    col6 := add_group_column('emp_rec','Sal',CHAR_COLUMN,10);
    col7 := add_group_column('emp_rec','comm',CHAR_COLUMN,10);
    col8 := add_group_column('emp_rec','Deptno',CHAR_COLUMN,4);
    loop
    go_block('emp_r');
    go_record(i);
    add_group_row(rec_grp,i);
    set_group_char_cell('emp_rec.empno',i,:emp_r.empno);
    set_group_char_cell('emp_rec.ename',i,:emp_r.ename);
    set_group_char_cell('emp_rec.job',i,:emp_r.job);
    set_group_char_cell('emp_rec.mgr',i,:emp_r.mgr);
    set_group_date_cell('emp_rec.Hiredate',i,:emp_r.Hiredate);
    set_group_char_cell('emp_rec.sal',i,:emp_r.sal);
    set_group_char_cell('emp_rec.comm',i,:emp_r.comm);
    set_group_char_cell('emp_rec.deptno',i,:emp_r.deptno);
    i := i + 1;
         exit when :system.last_record='TRUE';
    end loop;
    pl_id := get_parameter_list('para1');
    if not id_null(pl_id) then
    destroy_parameter_list(pl_id);
    end if;
    pl_id := create_parameter_list('para1');
    add_parameter(pl_id,'Q_EMP',DATA_PARAMETER,'emp_rec');
    add_parameter(pl_id,'paramform',text_parameter,'no');
    run_product(REPORTS,'D:\ora\daily.RDF',synchronous,runtime,filesystem,pl_id,NULL);
    end;
    ---------and this is my reprot query----------
    select Empno,Ename,Job,Mgr,Hiredate,Sal,Comm,Deptno
    from emp
    where empno=:emp_rec
    order by empno;
    but it show error at run time
    Rep-1340
    plzz solve this problem to me
    fahad

  • RUNNIG CRYSTAL REPORTS FROM ORACLE FORMS (for oracle report team too)

    I WANT TO RUN CRYSTAL REPORT FROM THE ORACE FORMS 6i how can i
    run this if any one has syntax or any detail please send me
    or reply
    thanks

    Ask the Crystal support forum how do you invoke their tool from
    a command line.
    You can then use host command from forms.
    You can also try and find out if they have an OLE2 interface and
    then work with the OLE2 package in forms.

  • Calling BI Reports from Oracle Forms

    Hi Guys,
    I have successfully called the BI Reports from Form Services at my Development Server.
    But now I am deploying the same in production Server but the following error is coming.
    Exception: java.lang.Exception: java.lang.NoSuchMethodError: oracle.j2ee.ws.saaj.client.p2p.HttpSOAPConnectio.setPreemptiveBasicAuth(Z)V
    Does any body have any idea which jar file I can find the above method.
    Thanks & Regards,
    Rajender

    Here :
    where is jar file for oracle.j2ee.ws.client.ServiceFactoryImpl
    they talk about a :
    wsclient.jar
    What is sure is that the jar must contain/begin with WS as webservice.
    Success
    Nico

  • Calling a Report from Oracle Forms 10g

    Hi Everyone,
    I need assistance.
    Am running Oracle Forms & reports 10g.
    My Form module is running just fine. Inside the the Form Module I added a button with a "When Button Pressed Trigger" that has the following code
    declare
         repid REPORT_OBJECT;
         v_rep VARCHAR2 (100);
    begin
         repid := FIND_REPORT_OBJECT ('REPORT49');
         v_rep := RUN_REPORT_OBJECT (repid);
    end;
    This compiles without any errors.
    At runtime when I press the Button from Forms, I get the following error;
    "FRM-41211: Integration error: SSL failure running another product"
    Please assist.
    Regards,
    Pascaline

    Hi user593321
    FRM-41211: Integration error: SSL failure running another product.
    Cause:     There is a problem detected when launching another product.
    Action:     Check the RUN_PRODUCT built-in.
    Level:     99
    Type:     Error
    Below a very useful links pls try them, i recommend the 2nd one:
    http://www.programmersheaven.com/mb/oracle/211184/211184/ReadMessage.aspx
    http://www.developpez.net/forums/showthread.php?t=292435
    Best Regards,
    Abdetu..

  • Calling parameterised reports from Oracle Forms 11g

    Hi,
    I wrote a procedure to call the reports as
    PROCEDURE CALL_REPORT IS
    BEGIN
    DECLARE
    v_report_id Report_Object;
    vc_report_job_id VARCHAR2(100); /* unique id for each Report request */
    vc_rep_status VARCHAR2(100); /* status of the Report job */
    BEGIN
    v_report_id:= FIND_REPORT_OBJECT(:global.rep_name);
    SET_REPORT_OBJECT_PROPERTY(v_report_id, REPORT_EXECUTION_MODE,BATCH);
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_COMM_MODE,ASYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_DESTYPE,CACHE);
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_DESFORMAT,'HTML');
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_SERVER, :global.rep_svr);
    vc_report_job_id := RUN_REPORT_OBJECT(v_report_id);
    vc_rep_status:= REPORT_OBJECT_STATUS(vc_report_job_id);
    WHILE vc_rep_status IN ('RUNNING','OPENING_REPORT','ENQUEUED')LOOP
    vc_rep_status:= REPORT_OBJECT_STATUS(vc_report_job_id);
    END LOOP /* Wait for Report to be finished */;
    IF vc_rep_status='FINISHED' THEN
    :system.message_level := 5;
    commit_form;
    :system.message_level := 0;
    web.show_document('/reports/rwservlet/getjobid'||
    substr(vc_report_job_id,instr(vc_report_job_id,'_',-1)+1)||
    '?server='||:global.rep_svr);
    ELSIF vc_rep_status NOT IN ('RUNNING','OPENING_REPORT','ENQUEUED') THEN
    message (vc_rep_status||' Report output aborted');
    END IF;
    END;
    END;
    I can use this for simple reports (that reports w/o parameters) as
    DECLARE
    rep_name VARCHAR2(15):= 'rep_hotels';
    BEGIN
    :global.rep_name := rep_name;
    CALL_REPORT;
    END;
    & This is working fine. But how to use this in parametarised reports.
    I tried lyk this, procedure as (I made the parametere list id as global)
    PROCEDURE CALL_REPORT IS
    BEGIN
    DECLARE
    v_report_id Report_Object;
    vc_report_job_id VARCHAR2(100); /* unique id for each Report request */
    vc_rep_status VARCHAR2(100); /* status of the Report job */
    BEGIN
    v_report_id:= FIND_REPORT_OBJECT(:global.rep_name);
    SET_REPORT_OBJECT_PROPERTY(v_report_id, REPORT_EXECUTION_MODE,BATCH);
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_COMM_MODE,ASYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_DESTYPE,CACHE);
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_DESFORMAT,'HTML');
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_SERVER, :global.rep_svr);
    vc_report_job_id := RUN_REPORT_OBJECT(v_report_id, :global.pl_id);
    vc_rep_status:= REPORT_OBJECT_STATUS(vc_report_job_id);
    WHILE vc_rep_status IN ('RUNNING','OPENING_REPORT','ENQUEUED')LOOP
    vc_rep_status:= REPORT_OBJECT_STATUS(vc_report_job_id);
    END LOOP /* Wait for Report to be finished */;
    IF vc_rep_status='FINISHED' THEN
    :system.message_level := 5;
    commit_form;
    :system.message_level := 0;
    web.show_document('/reports/rwservlet/getjobid'||
    substr(vc_report_job_id,instr(vc_report_job_id,'_',-1)+1)||
    '?server='||:global.rep_svr);
    ELSIF vc_rep_status NOT IN ('RUNNING','OPENING_REPORT','ENQUEUED') THEN
    message (vc_rep_status||' Report output aborted');
    END IF;
    END;
    END;
    & to call
    DECLARE
    pl_id ParamList;
    par_strg VARCHAR2(500);
    rep_name VARCHAR2(15):= 'rep_hotels';
    BEGIN
    pl_id := Get_Parameter_List('tmpdata');
    :global.rep_name := rep_name;
    :global.pl_id := pl_id;
    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,'REQ_FY',TEXT_PARAMETER, :OTC_TRANS_REQUISITIONS.FY);
    Add_Parameter(pl_id,'REQ_SEQ',TEXT_PARAMETER, :OTC_TRANS_REQUISITIONS.SEQ);
    Add_Parameter(pl_id,'REQ_VER_NO',TEXT_PARAMETER,:OTC_TRANS_REQUISITIONS.VERSION_NO );
    Add_Parameter(pl_id,'REQ_HDR',TEXT_PARAMETER,:OTC_TRANS_REQUISITIONS.SCR_REQ_STATUS );
    par_strg := '&REQ_FY='||:OTC_TRANS_REQUISITIONS.FY||'&REQ_SEQ='||:OTC_TRANS_REQUISITIONS.SEQ||'&REQ_VER_NO='||:OTC_TRANS_REQUISITIONS.VERSION_NO||'&REQ_HDR='||:OTC_TRANS_REQUISITIONS.SCR_REQ_STATUS;
    CALL_REPORT;
    END;
    But this make compilation error for
    :global.pl_id := pl_id;
    as "expression is of wrong type"
    I dont think we can make parameters as global, with out that i have to write evry thing in one as
    DECLARE
    pl_id ParamList;
    par_strg VARCHAR2(500);
    rep_name VARCHAR2(15):= 'rep_hotels';
    v_report_id Report_Object;
    vc_report_job_id VARCHAR2(100); /* unique id for each Report request */
    vc_rep_status VARCHAR2(100); /* status of the Report job */
    BEGIN
    :global.rep_name := rep_name;
    v_report_id:= FIND_REPORT_OBJECT(:global.rep_name);
    SET_REPORT_OBJECT_PROPERTY(v_report_id, REPORT_EXECUTION_MODE,BATCH);
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_COMM_MODE,ASYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_DESTYPE,CACHE);
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_DESFORMAT,'HTML');
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_SERVER, :global.rep_svr);
    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,'REQ_FY',TEXT_PARAMETER, :OTC_TRANS_REQUISITIONS.FY);
    Add_Parameter(pl_id,'REQ_SEQ',TEXT_PARAMETER, :OTC_TRANS_REQUISITIONS.SEQ);
    Add_Parameter(pl_id,'REQ_VER_NO',TEXT_PARAMETER,:OTC_TRANS_REQUISITIONS.VERSION_NO );
    Add_Parameter(pl_id,'REQ_HDR',TEXT_PARAMETER,:OTC_TRANS_REQUISITIONS.SCR_REQ_STATUS );
    par_strg := '&REQ_FY='||:OTC_TRANS_REQUISITIONS.FY||'&REQ_SEQ='||:OTC_TRANS_REQUISITIONS.SEQ||'&REQ_VER_NO='||:OTC_TRANS_REQUISITIONS.VERSION_NO||'&REQ_HDR='||:OTC_TRANS_REQUISITIONS.SCR_REQ_STATUS;
    vc_report_job_id := RUN_REPORT_OBJECT(v_report_id, pl_id);
    vc_rep_status:= REPORT_OBJECT_STATUS(vc_report_job_id);
    WHILE vc_rep_status IN ('RUNNING','OPENING_REPORT','ENQUEUED')LOOP
    vc_rep_status:= REPORT_OBJECT_STATUS(vc_report_job_id);
    END LOOP /* Wait for Report to be finished */;
    IF vc_rep_status='FINISHED' THEN
    :system.message_level := 5;
    commit_form;
    :system.message_level := 0;
    web.show_document('/reports/rwservlet/getjobid'||
    substr(vc_report_job_id,instr(vc_report_job_id,'_',-1)+1)||
    '?server='||:global.rep_svr);
    ELSIF vc_rep_status NOT IN ('RUNNING','OPENING_REPORT','ENQUEUED') THEN
    message (vc_rep_status||' Report output aborted');
    END IF;
    END;
    , I have hundreds of report (migrating 6i to 11g), parameter names r different in each , so that is also impossible.
    can any1 suggest me a good idea to do this ?

    Hi,
    I wrote a procedure to call the reports as
    PROCEDURE CALL_REPORT IS
    BEGIN
    DECLARE
    v_report_id Report_Object;
    vc_report_job_id VARCHAR2(100); /* unique id for each Report request */
    vc_rep_status VARCHAR2(100); /* status of the Report job */
    BEGIN
    v_report_id:= FIND_REPORT_OBJECT(:global.rep_name);
    SET_REPORT_OBJECT_PROPERTY(v_report_id, REPORT_EXECUTION_MODE,BATCH);
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_COMM_MODE,ASYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_DESTYPE,CACHE);
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_DESFORMAT,'HTML');
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_SERVER, :global.rep_svr);
    vc_report_job_id := RUN_REPORT_OBJECT(v_report_id);
    vc_rep_status:= REPORT_OBJECT_STATUS(vc_report_job_id);
    WHILE vc_rep_status IN ('RUNNING','OPENING_REPORT','ENQUEUED')LOOP
    vc_rep_status:= REPORT_OBJECT_STATUS(vc_report_job_id);
    END LOOP /* Wait for Report to be finished */;
    IF vc_rep_status='FINISHED' THEN
    :system.message_level := 5;
    commit_form;
    :system.message_level := 0;
    web.show_document('/reports/rwservlet/getjobid'||
    substr(vc_report_job_id,instr(vc_report_job_id,'_',-1)+1)||
    '?server='||:global.rep_svr);
    ELSIF vc_rep_status NOT IN ('RUNNING','OPENING_REPORT','ENQUEUED') THEN
    message (vc_rep_status||' Report output aborted');
    END IF;
    END;
    END;
    I can use this for simple reports (that reports w/o parameters) as
    DECLARE
    rep_name VARCHAR2(15):= 'rep_hotels';
    BEGIN
    :global.rep_name := rep_name;
    CALL_REPORT;
    END;
    & This is working fine. But how to use this in parametarised reports.
    I tried lyk this, procedure as (I made the parametere list id as global)
    PROCEDURE CALL_REPORT IS
    BEGIN
    DECLARE
    v_report_id Report_Object;
    vc_report_job_id VARCHAR2(100); /* unique id for each Report request */
    vc_rep_status VARCHAR2(100); /* status of the Report job */
    BEGIN
    v_report_id:= FIND_REPORT_OBJECT(:global.rep_name);
    SET_REPORT_OBJECT_PROPERTY(v_report_id, REPORT_EXECUTION_MODE,BATCH);
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_COMM_MODE,ASYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_DESTYPE,CACHE);
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_DESFORMAT,'HTML');
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_SERVER, :global.rep_svr);
    vc_report_job_id := RUN_REPORT_OBJECT(v_report_id, :global.pl_id);
    vc_rep_status:= REPORT_OBJECT_STATUS(vc_report_job_id);
    WHILE vc_rep_status IN ('RUNNING','OPENING_REPORT','ENQUEUED')LOOP
    vc_rep_status:= REPORT_OBJECT_STATUS(vc_report_job_id);
    END LOOP /* Wait for Report to be finished */;
    IF vc_rep_status='FINISHED' THEN
    :system.message_level := 5;
    commit_form;
    :system.message_level := 0;
    web.show_document('/reports/rwservlet/getjobid'||
    substr(vc_report_job_id,instr(vc_report_job_id,'_',-1)+1)||
    '?server='||:global.rep_svr);
    ELSIF vc_rep_status NOT IN ('RUNNING','OPENING_REPORT','ENQUEUED') THEN
    message (vc_rep_status||' Report output aborted');
    END IF;
    END;
    END;
    & to call
    DECLARE
    pl_id ParamList;
    par_strg VARCHAR2(500);
    rep_name VARCHAR2(15):= 'rep_hotels';
    BEGIN
    pl_id := Get_Parameter_List('tmpdata');
    :global.rep_name := rep_name;
    :global.pl_id := pl_id;
    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,'REQ_FY',TEXT_PARAMETER, :OTC_TRANS_REQUISITIONS.FY);
    Add_Parameter(pl_id,'REQ_SEQ',TEXT_PARAMETER, :OTC_TRANS_REQUISITIONS.SEQ);
    Add_Parameter(pl_id,'REQ_VER_NO',TEXT_PARAMETER,:OTC_TRANS_REQUISITIONS.VERSION_NO );
    Add_Parameter(pl_id,'REQ_HDR',TEXT_PARAMETER,:OTC_TRANS_REQUISITIONS.SCR_REQ_STATUS );
    par_strg := '&REQ_FY='||:OTC_TRANS_REQUISITIONS.FY||'&REQ_SEQ='||:OTC_TRANS_REQUISITIONS.SEQ||'&REQ_VER_NO='||:OTC_TRANS_REQUISITIONS.VERSION_NO||'&REQ_HDR='||:OTC_TRANS_REQUISITIONS.SCR_REQ_STATUS;
    CALL_REPORT;
    END;
    But this make compilation error for
    :global.pl_id := pl_id;
    as "expression is of wrong type"
    I dont think we can make parameters as global, with out that i have to write evry thing in one as
    DECLARE
    pl_id ParamList;
    par_strg VARCHAR2(500);
    rep_name VARCHAR2(15):= 'rep_hotels';
    v_report_id Report_Object;
    vc_report_job_id VARCHAR2(100); /* unique id for each Report request */
    vc_rep_status VARCHAR2(100); /* status of the Report job */
    BEGIN
    :global.rep_name := rep_name;
    v_report_id:= FIND_REPORT_OBJECT(:global.rep_name);
    SET_REPORT_OBJECT_PROPERTY(v_report_id, REPORT_EXECUTION_MODE,BATCH);
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_COMM_MODE,ASYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_DESTYPE,CACHE);
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_DESFORMAT,'HTML');
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_SERVER, :global.rep_svr);
    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,'REQ_FY',TEXT_PARAMETER, :OTC_TRANS_REQUISITIONS.FY);
    Add_Parameter(pl_id,'REQ_SEQ',TEXT_PARAMETER, :OTC_TRANS_REQUISITIONS.SEQ);
    Add_Parameter(pl_id,'REQ_VER_NO',TEXT_PARAMETER,:OTC_TRANS_REQUISITIONS.VERSION_NO );
    Add_Parameter(pl_id,'REQ_HDR',TEXT_PARAMETER,:OTC_TRANS_REQUISITIONS.SCR_REQ_STATUS );
    par_strg := '&REQ_FY='||:OTC_TRANS_REQUISITIONS.FY||'&REQ_SEQ='||:OTC_TRANS_REQUISITIONS.SEQ||'&REQ_VER_NO='||:OTC_TRANS_REQUISITIONS.VERSION_NO||'&REQ_HDR='||:OTC_TRANS_REQUISITIONS.SCR_REQ_STATUS;
    vc_report_job_id := RUN_REPORT_OBJECT(v_report_id, pl_id);
    vc_rep_status:= REPORT_OBJECT_STATUS(vc_report_job_id);
    WHILE vc_rep_status IN ('RUNNING','OPENING_REPORT','ENQUEUED')LOOP
    vc_rep_status:= REPORT_OBJECT_STATUS(vc_report_job_id);
    END LOOP /* Wait for Report to be finished */;
    IF vc_rep_status='FINISHED' THEN
    :system.message_level := 5;
    commit_form;
    :system.message_level := 0;
    web.show_document('/reports/rwservlet/getjobid'||
    substr(vc_report_job_id,instr(vc_report_job_id,'_',-1)+1)||
    '?server='||:global.rep_svr);
    ELSIF vc_rep_status NOT IN ('RUNNING','OPENING_REPORT','ENQUEUED') THEN
    message (vc_rep_status||' Report output aborted');
    END IF;
    END;
    , I have hundreds of report (migrating 6i to 11g), parameter names r different in each , so that is also impossible.
    can any1 suggest me a good idea to do this ?

  • Calling Report from Oracle form 11g

    I am new to Forms 11g, trying to call report from Oracle forms 11g .
    I want to call report from oracle forms, but its giving error.
    Below is the code
    DECLARE
    repid REPORT_OBJECT;
    v_rep VARCHAR2(100);
    rep_status VARCHAR2(20);
    BEGIN
    repid := FIND_REPORT_OBJECT('empreport'); -- report node in forms builder
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,SYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(repid, REPORT_EXECUTION_MODE, BATCH);
    set_report_object_property ( repid, report_filename, 'empreport.rdf' ); -- report name
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,cache);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'PDF');
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,'RptSvr'); -- report server name
    v_rep := RUN_REPORT_OBJECT(repid);
    rep_status := REPORT_OBJECT_STATUS(v_rep);
    if
    rep_status = 'FINISHED'
    then
    WEB.SHOW_DOCUMENT('http://inorasrv-pc:7001/reports/dtd/rwservlet/getjobid='||v_rep||'?server='||'RptSvr','_blank');
    else
    message ( 'error while running reports-object ' || error_text );
    message ( ' ' );
    clear_message;
    end if;
    end;
    Above code giving following error :
    Unable to connect to report server RptSvr
    I think my report servername is wrong
    Where to find report server name in 11g.
    I am Using weblogic server, so can i give weblogic server name
    Thanks in advance.
    Edited by: parapr on Aug 17, 2012 1:52 AM
    Edited by: parapr on Aug 17, 2012 3:21 AM

    Hi,
    You have to have the report server
    a. Installed and configured
    b. Running.
    See
    http://docs.oracle.com/cd/E21764_01/bi.1111/b32121/pbr_strt001.htm
    http://docs.oracle.com/cd/E17904_01/bi.1111/b32121/pbr_verify004.htm
    http://docs.oracle.com/cd/E17904_01/bi.1111/b32121/pbr_conf003.htm#i1007341
    If you are using rwservlet then you will find the name from the Configuration file referred to in the last link.
    Cheers,

  • Calling Report From Oracle Forms

    Hi
    I am calling this one report from oracle forms, I am using global temporary table to run that report. I am first inserting data into the temporary table through oracle form and then i am calling report in that form to view the data in that temporary table. The problem is, we can not view the data of an other session if we are using temporary table. When i call report from that form a new session get created due to which i can not see the data. Is there any method of calling report from oracle form that a same session is used to run the report?
    Thanks.

    As you mention Forms and Reports do not share the database session. I had the same problem and resolved it using record groups and DATA_PARAMETER to transfer data from Forms to Reports. You could also read the Note 110495.1 on Metalink to find useful information regarding this issue.
    Adi

  • How to Call a jasper report from Oracle Forms 6i.

    Hi
    Can anybody tel me how to Call a jasper report from ORacle Forms 6i.
    Thanks & Regards
    Bango

    Forms 6i client/server? Use the HOST command to call the report. Since a Jasper report is just a call to a url, it will be something like:
    v_url := '<your url to the report>';
    host ('cmd /c start '||v_url);If it's web Forms 6i it even easier. Just use web.show_document(<url>).

  • Calling reports from oracle forms 9i

    Hi
    I succeded to call reports from oracle forms but for I have a problem for only one report so I can't call it. this a part of the code I'm using :
    declare
         pl_id2 ParamList;
         pl_name2 VARCHAR2(30) := 'liste2';      
    v_rep VARCHAR2(100);
         rep_status VARCHAR2(20);
    begin
    pl_id2 := get_parameter_list(pl_name2);
    if (Id_Null(pl_id2) )THEN     
    pl_id2 := Create_Parameter_List(pl_name2);
    IF NOT Id_Null(pl_id2) THEN     
         add_parameter(pl_id2,'mois',TEXT_PARAMETER,:mois);
    END IF;
    end if;
    IF NOT Id_Null(pl_id2) THEN
    if(:mois is not null) then
    v_rep := RUN_REPORT_OBJECT('My_report',pl_id2);
    message(v_rep);
    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      
    message('Error when running report');
    END IF;
    end;
    the problem I've remarqued is that the function message(v_rep) is always returning the value :'repserver_0'.
    so when I execute the previous code I'm getting the 2 messages : 'repserver_0' and 'Error when running report'.
    Rq: the report my_report is running very well in report builder.
    does someone see where is the problem so can help me??
    thanx.

    Hi,
    This usually happens when the report fails on the report server. To obtain details on why a particular report has failed, use the showjobs page :
    http://server.domain:PORT/reports/rwservlet/showjobs?server=repserver
    and check the detailed error occured.
    This is logged as Bug:3017948. It is marked to be fixed in version 9.0.4 (Reports 10g) and also has one-off patches for version 9.0.2.3 on Windows platforms. If you need further assistance about patches, please raise a Service Request (SR) with Support via Metalink (http://metalink.oracle.com).
    Regards,
    -Bulent

Maybe you are looking for

  • Mini DisplayPort to VGA problem

    Hi, all! My New MacBook can't work with external display with resolution more then 1360x768 using Mini DisplayPort to VGA connector. Then I'm setting bigger resolution (for ex. 1920x1080) display shows me picture for a 2-3 seconds, then switches off,

  • Multi-Room DVR can't play recordings properly

    Wondering if anyone else has this problem, or knows of a solution.  I have Multi-Room DVR. In the past, my biggest problem with it was that recordings would occasionally freeze when played on a remote box (i.e. not the main DVR box). I would have to

  • I have a jpg file that I must use as a background in a Dreamweaver project. There is some text embed

    I have a jpg file that I must use as a background in a Dreamweaver project. There is some text embedded in it that I can't edit. I have tried using Illustrator and Photoshop but I lack experience so I'm probably missing something. I'd be glad of some

  • Unplugged LaCie w/o ejecting, now it won't remount

    Let me say right off that I know it's not good to unplug a FW drive w/o enjecting, however the Finder crashed on my computer and wasnt' able to eject it, rather I had to hold down the power button in order for it to turn off. So, now it won't mount..

  • As per requirement I need to map Char as KF

    Dear Experts, As per requirement I need to map Char as KF Char data type Char but need to KF Number Please Guide me Regards, JK