Calling 6i reports containg oracle graphics in ias 10.1.2.0.2

Hi,
i'm having troubles calling a report containing an oracle graphics chart.
i'm using ias 10.1.2.0.2 and the corresponding forms tools. and the ias 1.0.2.2.2a isuite server.
Compiling and running the forms is not a problem and neither is caling ordinary reports. i.e reports not containing any oracle graphics. So i'm confident that my server setup is correct.
When i'm calling reports containing oracle graphics charts the reports simply hangs.
Consulting the ias server reports queue i can see that status is 'running the report, now executing pre-form trigger' and that's it. status never changes and the report never finishes.
In my ias 101202 home i've set the following environment variables:
ORACLE_GRAPHICS6I_HOME -> E:\oracle\806 which is where my oracle graphics is installed
GRAPHICS60_PATH -> e:\mastra\rep which is where i store my reports and oracle graphics charts
I keep both the .rdf file and the compiled .rep in the e:\mastra\rep directory.
Strange thing is that if i don't include the full path to the oracle graphics component in the report it's not able to find it at runtime. I can see in the reports status screen it complains about not being able to fond the chart.
what parameter should i set so i don't have to hard code the path to the graphics chart?
If i include the full path to the chart it probably finds it because it doesn't complain but now it hangs telling me that it's running the preform trigger. and then nothing happens.
please help me cause im stuck here.
thanks for any input.
br
kim gabrielsen

Hi Frank,
Our reports are all called from Forms...using RUN_REPORT_OBJECT in the 10g environment. We have hundreds of reports (6i based) that all work fine when run on the 10g app server. The only ones that fail to complete are those that have Graphics embedded. Yet they work just fine when run Client/Server under 6i. On the 10g app server they just run forever/get hung.
If I launch Graphic 6i Builder on the 10g App Server box, I can connect to the database without any problems. And Graphics 6i do run just fine from my 10g forms (converted from 6i Forms) on the App Server. NOTE: My Graphics 6i uses the same tnsmanes.ora and sqlnet.ora that my App Server uses (via a TNS_ADMIN setting in the Windows registry)
Is there something extra special I need to do in the report itself?
Thanks,
John

Similar Messages

  • Calling 6i reports containg oracle graphics in ias 10.1.2.0.2 from forms

    Hi,
    i'm having troubles calling a report containing an oracle graphics chart.
    i'm using ias 10.1.2.0.2 and the corresponding forms tools. and the ias 1.0.2.2.2a isuite server.
    Compiling and running the forms is not a problem and neither is caling ordinary reports. i.e reports not containing any oracle graphics. So i'm confident that my server setup is correct.
    When i'm calling reports containing oracle graphics charts the reports simply hangs.
    Consulting the ias server reports queue i can see that status is 'running the report, now executing pre-form trigger' and that's it. status never changes and the report never finishes.
    In my ias 101202 home i've set the following environment variables:
    ORACLE_GRAPHICS6I_HOME -> E:\oracle\806 which is where my oracle graphics is installed
    GRAPHICS60_PATH -> e:\mastra\rep which is where i store my reports and oracle graphics charts
    I keep both the .rdf file and the compiled .rep in the e:\mastra\rep directory.
    Strange thing is that if i don't include the full path to the oracle graphics component in the report it's not able to find it at runtime. I can see in the reports status screeen it complains about not being able to fond the chart.
    what parameter should i set so i don't have to hard code the path to the graphics chart?
    If i include the full path to the chart it probably finds it because it doesn't complain but now it hangs telling me that it's running the preform trigger. and then nothing happens.
    please help me cause im stuck here.
    thanks for any input.
    br
    kim gabrielsen

    Hi Frank,
    Our reports are all called from Forms...using RUN_REPORT_OBJECT in the 10g environment. We have hundreds of reports (6i based) that all work fine when run on the 10g app server. The only ones that fail to complete are those that have Graphics embedded. Yet they work just fine when run Client/Server under 6i. On the 10g app server they just run forever/get hung.
    If I launch Graphic 6i Builder on the 10g App Server box, I can connect to the database without any problems. And Graphics 6i do run just fine from my 10g forms (converted from 6i Forms) on the App Server. NOTE: My Graphics 6i uses the same tnsmanes.ora and sqlnet.ora that my App Server uses (via a TNS_ADMIN setting in the Windows registry)
    Is there something extra special I need to do in the report itself?
    Thanks,
    John

  • 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

  • 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

  • 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

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

  • Calling a report in Oracle 9i and preview as RTF format in Internet Browser

    When I call a report with destination format as RTF the browser opens the report and then the window of the browser closes automaticaly itself.
    How can I view the report longer and make some changes in MSWORD ?

    Sorry for interrupting, but I'm interested to know your thoughts on this topic (reports window opening and closing quickly). I have a similar problem that I haven't been able to troubleshoot. We're formatting our output for Excel, using a URL like:
    '&desformat=spreadsheet&destype=cache&mimetype=application/vnd.ms-excel'
    The report runs and the developers get the "Open or Save" modal window correctly. On the user's desktop, however, the report appears to run (an assumption based on a new browser window opening with the correct URL), but when the modal window should open, it appears to flash (opens and closes extremely fast) and then the report browser window closes.
    I'd like to hear your thoughts on this and will work to provide answers so that I, and hopefully, others can have a solution to this problem.
    Thanks.

  • Calling discoverer report from Oracle report

    Hi
    I need to call a discoverer report from an Oracle report.
    Could someone pls let me know how you did it?
    Thanks.

    If the Oracle Discoverer Report is accessible by an URL then yes. It will be similar to calling Oracle Reports. See http://www.oracle.com/technology/products/database/application_express/howtos/howto_integrate_oracle_reports.html
    Patrick
    My APEX Blog: http://inside-apex.blogspot.com
    The ApexLib Framework: http://apexlib.sourceforge.net
    The APEX Builder Plugin: http://sourceforge.net/projects/apexplugin/

  • 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

  • CALL A REPORT FROM ORACLE 10G FORMS

    HI,
    I HAVE STARTED TO WORK WITH ORACLE DATABASE 11G AND DEVELOPER SUIT 10G.
    I HAVE A REPORT THAT IT WORKS CORRECTLY WHEN I RUN IT FROM REPORT DEVELOPER.
    BUT WHEN I WANT TO CALL IT FROM A FORM, IT DOESN'T WORK.
    IN ORACLE DEVELOPER 6I, I USE "RUN_PRODUCT" COMMAND AND IT WORKS WELL ,BUT IN
    DEVELOPER SUIT 10G I HAVE TO USE "RUN_REPORT_OBJECT" AND I DON'T KNOW HOW.
    WHEN I COMPILE MY CODES THERE IS NO ERROR ,BUT WHEN I RUN IT, IT SHOWS ME SOME ERRORS .
    THIS IS MY CODES FROM ORACLE HELP :
    DECLARE  
    repid REPORT_OBJECT; 
    v_rep VARCHAR2(100); 
    rep_status VARCHAR2(20);
    BEGIN
    repid := FIND_REPORT_OBJECT('D:\TESTPROJ\REPORT1.JSP'); 
    v_rep := RUN_REPORT_OBJECT(repid);
    END;
    IT SHOWS ME THIS ERROR : FRM-41219 .CANNOT FIND REPORT. INVALID ID.
    AND THEN : FRM-40738. ARGUMENT 1 TO BUILTIN RUN_REPORT_OBJECT CANNOT BE NULL;
    PLEASE HELP ME TO SOLVE THIS PROBLEM
    THANKFUL
    MAHSA

    Manu,
    I added my report to Form-Navigator and I changed it's name to REP1.
    I added all you codes to When-Button-Press event like this :
    DECLARE
         RO_Report_ID REPORT_OBJECT;
         Str_Report_Server_Job VARCHAR2(100);
         Str_Job_ID VARCHAR2(100);
         Str_URL VARCHAR2(100);
         PL_ID PARAMLIST ;
    BEGIN
         PL_ID := GET_PARAMETER_LIST('TEMPDATA');
         IF NOT ID_NULL(PL_ID) THEN
              DESTROY_PARAMETER_LIST(PL_ID);
         END IF;
         PL_ID := CREATE_PARAMETER_LIST('TEMPDATA');
         RO_Report_ID := FIND_REPORT_OBJECT('REP1'); -- This is my report's name in Form-Navigator. Is it correct to put it here ?
         ADD_PARAMETER(PL_ID, 'P_SELECT_CITY',     TEXT_PARAMETER, :CITY); --These are my parameter in REPORT and it's Value in my FORM*
         SET_REPORT_OBJECT_PROPERTY(RO_Report_ID, REPORT_FILENAME, 'D:\projects\PROJECT_OF_1388\TestOraDev10g\TEST_REP1');
         SET_REPORT_OBJECT_PROPERTY(RO_Report_ID, REPORT_COMM_MODE, SYNCHRONOUS);
         SET_REPORT_OBJECT_PROPERTY(RO_Report_ID, REPORT_EXECUTION_MODE, BATCH);
         SET_REPORT_OBJECT_PROPERTY(RO_Report_ID, REPORT_DESTYPE, FILE);
         SET_REPORT_OBJECT_PROPERTY(RO_Report_ID, REPORT_DESFORMAT, 'PDF');
         SET_REPORT_OBJECT_PROPERTY(RO_Report_ID, REPORT_SERVER, 'Rep_faraji'); -- as you said, I put my computer name after REP_   here
         Str_Report_Server_Job := RUN_REPORT_OBJECT(RO_Report_ID, PL_ID);
         Str_Job_ID := SUBSTR(Str_Report_Server_Job, LENGTH('Rep_faraji') + 2, LENGTH(Str_Report_Server_Job)); -- as you said, I put my computer name after REP_   here
         Str_URL      := '/reports/rwservlet/getjobid' || Str_Job_ID || '?server=Rep_faraji'; -- as you said, I put my computer name after REP_   here
         WEB.SHOW_DOCUMENT(Str_URL, '_SELF');
         DESTROY_PARAMETER_LIST(PL_ID);
    END;
    But it doesn't work again, And shows this error :
    FRM-41213. unable to connect to the report server Rep_faraji
    Edited by: user508902 on Mar 2, 2010 2:18 AM
    Edited by: user508902 on Mar 2, 2010 2:20 AM

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

  • How to  call  crystal reports in oracle Jdeveloper

    Hi all,
    I am new in crystal reports . I had created crystal reports Eclipse IDE 3.3.2 in that i created .rpt & .jsp . how to pass parmeter in that file to Jdeveloper or which fille use to pass parameter  from  daabase
    can any one help
    Regards
    Ajit

    Hi A,
    I am having issues trying to get a small application that I developed in eclipse (CR4E)that uses Crystal Reports to work with Oracle's JDeveloper OC4J embedded server. I can run the application fine and when I try to view a report I get a partial report rendering and then get the following Exception:
    Also while inserting on the page Showing error on the page
    java.lang.IllegalStateException: Writer already retrieved at com.evermind.server.http.EvermindHttpServletResponse.getOutputStream(EvermindHttpServletResponse.java:880) at com.evermind.server.http.EvermindHttpServletResponse.getJspOutputStream(EvermindHttpServletResponse.java:875) at com.evermind.server.http.EvermindJSPWriter.initServletOut(EvermindJSPWriter.java:525) at com.evermind.server.http.EvermindJSPWriter.writeOut(EvermindJSPWriter.java:537) at com.evermind.server.http.EvermindJSPWriter.jspflush(EvermindJSPWriter.java:436) at com.evermind.server.http.EvermindJSPWriter.close(EvermindJSPWriter.java:406) at oracle.jsp.runtime.OracleJspRuntime.extraHandlePCFinally(OracleJspRuntime.java:1689) at NEWPROJECTR.jspService(_NEWPROJECTR.java:89) [/NEWPROJECTR.jsp] at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59) at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462) at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:598) at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:522) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64) at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:162) at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15) at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:162) at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:620) at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:369) at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:865) at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:447) at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:215) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:117) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:110) at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260) at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239) at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34) at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880) at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303) at java.lang.Thread.run(Thread.java:595)
    Actually i am firstly Compiling CR4E in that i am using Apace Tomcat Server 5.5 .in CR4E it is Running fine But while inserting these .Jsp file  in Jdeveloper and in that I am Using OC4J server for compiling that time gives these above error 
    Can OC4J server not supporting to .rpt files?
    Thank You !
    Sincerely,
    Ajit

  • 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

Maybe you are looking for

  • Install not working (ver 10.1, firefox, Win7 64)

    Kept downloading and running updater, as admin, no antivirus, on my new 64bit Win7 laptop. Installer always reports success, but the Player remains at ver 10.0. Eventually downloaded Adobe's uninstaller, ran it, it removed ver 10.0. Rebooted. Ran ins

  • JTable rows listener

    I have this Jtable in my program. Suppose I want to double-click on a row in the table, and this is supposed to cause a listener to respond depending on which row is clicked. what type of listeners do I need to add to the Jtable?

  • Can a concurrent program attached to responsibilty

    Dear All can a concurrent program attached to specific custom responsibilty. I have made a concurrent program "On Hand qty " and i neeed to attach it to "XXXX Material On-Hand Quantity". how can it be done. I have already attach it to Inventory Respo

  • How to change size of text bounding box in FW CS5?

    I can't find anywhere how to make the text bounding box the same size as the text within it.  Something got switched in my FW so that now every new text box is about 3x or more higher than the text typed inside.  How to change this? https://forums.ad

  • Lag time in texting

    I have the iphone 5 I have updated my ios 6.0.1 I noticed that there is a lag time when I am texting or writing e-mail. I have tried turning the phone off and back on but it did not help.  The delay is still there ...I am not a fast texter but there