How to call Reports in oracle forms 10g

Dear All,
How to call Reports in oracle forms 10g.
I am using Oracle Forms 10g Reports 10g and Database 10 and and Operating system Windows XP.
Please give me the Solution.
Thanks and Regards,
Faziludeen

Hi Omkar,
Please check the following code.
DECLARE
  repid REPORT_OBJECT;
  v_rep VARCHAR2(100);
  rep_status VARCHAR2(20);
  plid ParamList;
BEGIN
  plid := Get_parameter_List('tmp');
  IF NOT Id_Null(plid) THEN
  Destroy_parameter_List( plid );
  END IF;
  plid := Create_parameter_List('tmp');
  add_parameter(plid,'p_parameter',text_parameter,to_char(:POLICY.POLICY_NO));
  Add_parameter(plid, 'PARAMFORM', TEXT_parameter, 'NO');
  repid := FIND_REPORT_OBJECT('POL_REP');
  SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,SYNCHRONOUS);
  SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,cache);
  SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'PDF');
  SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER, 'paramform=no');
  v_rep := RUN_REPORT_OBJECT(repid,plid);
  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;
  WEB.SHOW_DOCUMENT('http://'||'LENOVO-428E9E41'||'8889'||'/reports/rwservlet/getjobid'||substr(v_rep,instr(v_rep,'_',-1)+1)||'?
  '||'server=prod_report_server&P_parameter='||:POLICY.POLICY_NO||
  '&paramform=no');
END;
I am used to Start the Report sever   'Rwserver Server=prod_Report_Server Start'
OracleAS Report Services
Version :-   10.1.2.0.2
Name    :-   prod_report_server
Status  :-   Server is Shutting down
Jobs in Queue  0
Active Engines  0
I got the Following Error when I trying to run the Report
FRM-41211: Integration error:SSL failure running another product
Thanks and Regards,
Faziludeen

Similar Messages

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

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

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

  • 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

  • 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

  • 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 enable tracing in Oracle Forms 10g

    Hi Friends,
    I am interested to trace my running oracle forms application. When I googled it, I got below useful information. But theory and practical has mismatch somewhere, I am not able to create the trace file(s).
    **************************** Some Notes ****************************************************
    How to Enable Tracing in Oracle Forms 10g
    Enable Tracing from the url by adding the following to your forms url:
    &record=forms&tracegroup=0-98,100-199 (note: item 99 causes some issues, so we are skipping it here. See the Oracle documenation for a description of what is being traced for each item.)
    for example
    [http://machine:port/forms/frmservlet?config=myConfig&record=forms&tracegroup=0-98,100-199]
    You will get a trace file in the following location:
    %ORACLE_HOME%\forms\trace\forms_xxx.trc where xxx is the forms session ID.
    Open dos window and do the following:
    set ORACLE_HOME=
    set PATH=%ORACLE_HOME%\jdk\bin;%PATH%
    set CLASSPATH=%ORACLE_HOME%\jdbc\lib\classes12.zip;%ORACLE_HOME%\forms\java\frmxlate.jar
    java oracle.forms.diagnostics.Xlate datafile=%ORACLE_HOME%\forms\trace\forms_xxx.trc outputfile=%ORACLE_HOME%\forms\trace\html_xxx.html outputclass=WriteOutHTML
    you will get a file html_xxx.html in your %ORACLE_HOME%\forms\trace directory.
    I need information beyond this to make this practically successful.
    Thanks in advance,
    Amol Naik

    Hello,
    <p>Did you read this paper ?</p>
    Francois

  • 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 : i am not able to coonect the report through oracle forms  10g

    i created a report "test1" through oracle report 10g and calling from oracle forms 10g
    i tried to run the report from forms builder but i am getting the following error
    "server can not connect 41213 error"
    from run mode i already given the following command for running the report server
    rwserver server=rep_fsprod
    The help is saying like that
    cause:  There is a problem connecting to the specified Report server. Action:  Check the Report server and make sure it is up and running. Level:  20
    Any pleae provide me the necessor setting for this issue and give me some good reselution
    But i am not sure where is the problem
    If anybody thats will be helpfull for me. please provide the step that i need to take
    the following are the code
    ------------------------------------------------------------>
    Declare
         PL_Id     ParamList;
    v_Report VarChar2(30) := 'TEST1';
    v_Rep_Id Report_Object;
    v_Rep_Job_Id VarChar2(100);
    v_Job_Id VarChar2(100);
    v_Rep_Status VarChar2(100);
    v_Rep_URL VarChar2(1000);
    v_Host_Name VarChar2(100) := 'localhost';
    v_Port     VarChar2(100) := '8889';
    v_Rep_Server VarChar2(100) := 'abc';
    Begin
    PL_Id := Get_Parameter_List(v_Report);
    If Not Id_Null(Pl_Id) Then
    Destroy_Parameter_List(Pl_Id);
    End If;
    Pl_Id:=Create_Parameter_List(v_Report);
    Add_Parameter(PL_Id, 'Usr_Id', Text_Parameter, 'cms');
    Add_Parameter(Pl_Id, 'ParamForm', Text_Parameter, 'NO');
    --Find Report Object
    v_Rep_Id := Find_Report_Object('TEST1');
    --Communication Mode
    Set_Report_Object_Property(v_Rep_Id, Report_Comm_Mode, Synchronous);
    Set_Report_Object_Property(v_Rep_Id, Report_Desformat, 'HTML');
    --Handled Destination Type and Name
         Set_Report_Object_Property(v_Rep_Id, Report_DesType, CACHE);
    --Specify Report Server and Report File Name
    Set_Report_Object_Property(v_Rep_Id, Report_Server, v_Rep_Server);
    Set_Report_Object_Property(v_Rep_Id, Report_FileName, v_Report);
    --Run Report
    v_Rep_Job_Id := Run_Report_Object(v_Rep_Id, PL_Id);
    v_Rep_Status := Report_Object_Status(v_Rep_Job_Id);
    If v_Rep_Status = 'FINISHED' Then
              v_Job_Id := SubStr(v_Rep_Job_Id, length(v_Rep_Server)+2);
              v_Rep_URL := 'http://' || v_Host_Name || ':' || v_Port || '/reports/rwservlet/getjobid' || v_Job_Id || '?server=' || v_Rep_Server;
    Message(v_Rep_URL);
                   Web.Show_Document(v_Rep_URL, '_blank');
    Else
         Message('Error Running Report');
    End If;
    End;
    ------------------------------------------------------------>

    i am facing same please do some favour me for this report issue

  • How to do this in oracle forms 10g

    hi all,
    any idea about how to format a drive using oracle forms 10g and shutting down the remote pc and a personal pc using oracle forms 10g.
    i am using windows XP2 as os.
    please replay..

    Hi Inol and Weiden,
    thanks for your help,
    i have cretaed a form xyz.fmx with a button , i wrote in when-button-pressed and also attached the default webutil.pll(which is in forms path) library in attached-library section
    Client_host('cmd c/ shutdown -i');
    but my problem is that when i run the form i am getting error that
    FRM-40039: Cannot attach library webutil.pl while opening form xyz.fmx.
    Cause: The given library is attached to the form but
    cannot be located in the search path for PL/SQL libraries.
    Action: Make sure that the given library can be found
    and that it has read permissions set.
    Level: 99
    Type: Error
    i think i have to configure the webutill.pll but i don't how to configure
    can you tell me how to configure the webutil.pll file..
    please reply..

  • How to use LDAP with Oracle forms 10g on Oracle application server

    Hi,
    I need some help on this. I have developed oracle forms 10g on application server 9iAS. The client want to use the existing LDAP authentication to the software we wrote. I do not know how I could configure to use the existing LDAP authentication . If anyone know how would I use the existing LDAP on different server to use when they logon to our menu in 10g to validate the user. Do I need to add any varibales in formweb.cfg or any other method. Please help.
    Thanks
    Luksh

    I am not quite sure if this works out of the box. According to an Oracle FAQ:
    4.2 Can I use LDAP to authenticate Forms Services?
    Not directly. However, Oracle Login Server is able to authenticate against a LDAP directory and thus a Forms application can take advantage of this in a SSO environment. But you cannot use access control information stored in a LDAP directory with Forms.

  • How to call reports 6i or forms 6i directly from oracle procedure

    Hi,
    Hi,
    Env: 6.0.8.25.2 (forms 6i/reports 6i)
    Database: Oracle 10g r2
    We are running a client server environment and not web based.
    I want to run the forms 6i or reports 6i directly from a database procedure/function and not by creating a procedure inside a form and then call a report.
    Looking for calling forms6i/reports 6i directly from sql*plus commands used inside the PLSQL database procedure/function. (Just like we create a stand alone package/procedure/function).
    I have developed many forms and reports and very comfortable in calling reports from forms 6i.
    My question was completely different but looks like i was not able to explain properly:
    I want to call the forms 6i or reports 6i directly from sqlplus* prompt and through stand alone oracle database procedure/function (procedure created directly in database but not as a program unit within form or report).
    There is a requirement to call the form through database scheduling by passing fixed parameters and then generate the report pdf and email automatically to various users.
    Also, is there any way to schedule a report automatically so that the report runs automatically in the scheduled time and send out reports to the users. I have developed a email program but looking for scheduling the report or forms 6i.
    Thanks,
    Srinivas

    Hi,
    There are couple of existing reports and forms developed in 6i and users are using them when required.
    For certain MIS reports, management wants them to be generated on daily/weekly basis and email to be sent to them as PDF files.
    Have a program which will convert to PDF and email to users but not able to trace on how to call the forms 6i or reports 6i and pass the report parameters so that the report is called directly through pl/sql so that i can schedule them.
    All the forms and report executables are located on server1 and database server is located in server2 and running on client/server architecture.
    Database version is 10g r2 and Forms/Reports version is 6i.
    Any code samples would be of great use.
    Srinivas

  • How to send a character mode report from Oracle Form 10g to a printer.

    how sending a character mode report from Oracle 10g report to a printer.
    I'm sending to a printer located in the network
    i have theses parameter report
    desformat = prtname
    desname=??????
    destype= ?????
    mode=character
    i would like to preview the report before to send to a printer
    slds

    ACCOUNTING SYSTEM
    2006-2007 From Date : 01-JUL-06
    Printed On : Friday August 31 2007 11:13 AM To Date : 30-SEP-07
    G A/C. Code 99-99-9999 Description: xxxxxxxxxxxxx H
    -- DOC. # -- -- DATE -Chq/Slip# ---------- N A R R A T I O N -- -- DEBIT -- -- CREDIT -- -- BALANCE --
    Opening Balance: -999,999,999.00 Cr.
    G *** Total *** 0.00 0.00 -999,999,999.00H
    ================= ================= =================
    when i run character mode report in browser then display this output properly
    but sir problem is that when i print the report
    G(use for bold)
    is not working
    means not print in bold format in printer
    same character print G
    do you have any idea when i print through browser to printer G for bold purpose its work to printer ?

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

Maybe you are looking for