Calling Report in forms9i

Hi All
i am calling report in Form9i applet by the following code behind a button in when button press trigger(i have attach abc report in forms report node.
declare
     x varchar2(20) ;
     r report_object ;
begin
     r := find_report_object('abc') ;
     x := run_report_object(r, 'abc') ;
end ;
and getting message error message
REP-0503 you did not speicfy the name of a report
Please tell me what i am missing
Thanx in Advance
waiting 4 your reply.

Zahid,
actually this message tells you that the Forms runtime is gone, which means it crashed. Can you check in teh Reports Services cache if the report was created. Also, make sure that Reports doesn't require sso while Forms don't. In addition open the reports_server.conf file in the reports/conf directory and remove the <security> .... </security> tag pair with all its content between. This tags are for access controlling Reports and requiring a system authentication to be passed which Forms doesn't if not running in sso mode itself. (This however happens only if you are running in Oracle9iAS, not in Oracle9iDS)
Frank

Similar Messages

  • Problum in calling report

    Hi all i ahve problum in calling report in forms9i and report 9i when button pressed
    the code of when-button-pressed is
    DECLARE
         repid REPORT_OBJECT;
         v_rep VARCHAR2(1000);
         rep_status VARCHAR2(20);
    BEGIN
              repid := FIND_REPORT_OBJECT('REPORT46');
    --     Message('repid:', NO_ACKNOWLEDGE);
              set_report_object_property(repid,report_other,'P_DATE_TWO='||:GIN.second_date
              ||' P_DATE_ONE='||:GIN.first_date||' P_DEPARTMENT='||:GIN.department||' P_FABRICATOR_NAME='||:GIN.fabricator);
              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://zensol-0d8148f7:8888/reports/rwservlet/getjobid'||
    substr(v_rep,instr(v_rep,'_',-1)+1)||'?'||'server=repserver90','_blank');
    ELSE
    message('Error when running report');
    END IF;
    PAUSE;
    END;
    and sql query for the report is this there are four user parameters and all are initialized in when button preesd code
    SELECT s.code,s.name,gin.prod_name,gin.color,gin.sale_order_id,gin.issue_date,gin.item_type,
    sum(gin.total_issue),sum(grn.total_receive) FROM
    (select g.item_type,g.supplier_code,g.supplier_name,gd1.prod_id,gd1.prod_name,
    gd1.color,
    gd1.sale_order_id,g.issue_date,
    (gd1.xs
                   + gd1.s
                   + gd1.m
                   + gd1.l
                   + gd1.xl
                   + gd1.pcs) AS total_issue from gin g,gin_detail1 gd1
    where g.id=gd1.id  and upper(g.item_type) like '%'||:p_department||'%'
    )gin,
    (select g.item_type,g.supplier_code,gd1.prod_id,gd1.prod_name,
    gd1.color,
    gd1.sale_order_id,
    (gd1.xs
                   + gd1.s
                   + gd1.m
                   + gd1.l
                   + gd1.xl
                   + gd1.pcs) AS total_receive from grn g,grn_detail1 gd1
    where g.id=gd1.id  and upper(g.item_type) like '%'||:p_department||'%'
    )grn,supplier s
    where gin.supplier_code = s.code
       AND grn.supplier_code = s.code
          AND gin.sale_order_id = grn.sale_order_id
       AND gin.prod_id = grn.prod_id(+)
    AND s.name like  '%'||:p_fabricator_name||'%'
    AND gin.issue_date between :p_date_one and :p_date_two
    GROUP BY s.code,s.name,gin.prod_name,gin.color,gin.sale_order_id,gin.issue_date,gin.item_type
    Please help
    Thnaks And Regards
    Vikas Singhal                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    hi
    i pass this code and get error 500 internal server error
    WEB.SHOW_DOCUMENT('http://zensol-0d8148f7:8888/reports/rwservlet/getjobid'||
    'server=repserver90','_blank');
    500 Internal Server Error
    java.lang.NumberFormatException: server=repserver90
         at java.lang.Integer.parseInt(Integer.java:414)
         at java.lang.Integer.parseInt(Integer.java:463)
         at oracle.reports.rwclient.CommandManager.handleCmdGetjob(CommandManager.java:1219)
         at oracle.reports.rwclient.CommandManager.handleWebCommand(CommandManager.java:369)
         at oracle.reports.rwclient.RWClient.handleWebCommand(RWClient.java:661)
         at oracle.reports.rwclient.RWClient.processRequest(RWClient.java:1063)
         at oracle.reports.rwclient.RWClient.doGet(RWClient.java:225)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:244)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
         at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:59)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:283)
         at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:523)
         at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:269)
         at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:735)
         at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.HttpRequestHandler.run(HttpRequestHandler.java:243)
         at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].util.ThreadPoolThread.run(ThreadPoolThread.java:64)

  • Calling Reports 9i from Forms9i

    How do I call Reports from Forms developer through customized menus using HOST command

    Hi Rohit,
    The link should be http://otn.oracle.com/products/forms/pdf/frm9isrw9i.pdf
    I follow the document and I built a Report called 'PRODUCT_REPORT' using Reports 9i Builder and save it to 'PRODUCT_REPORT.rdf' and 'PRODUCT_REPORT.jsp' and compiled to 'PRODUCT_REPORT.rep'
    I created a Form called 'PRODUCT_REPORT_FORM' using Forms 9i Builder and save it to 'PRODUCT_REPORT_FORM.fmb' and compile to 'PRODUCT_REPORT_FORM.fmx'.
    I define Reports in the Form 'PRODUCT_REPORT_FORM.fmb' that links Filename 'PRODUCT_REPORT.rdf'.
    I add the following PRE-FORM trigger:
    DECLARE
    repid REPORT_OBJECT;
    v_rep VARCHAR2(100);
    BEGIN
    repid:=find_report_object('PRODUCT_REPORT');
    v_rep := RUN_REPORT_OBJECT(repid);
    END;
    I start OC4J Instance. When I run the form, the following error occurs:
    REP-0503: You did not specify the name of a report
    Click on [OK]
    FRM-40738: Argument 1 to builtin
    REPORT_OBJECT_STATUS cannot be null.
    Click on [OK]
    FRM-10259: Invalid null argument to packaged procedure or function.
    Can any one help me?
    Can any one clarify the following:
    1. RUN_REPORT_OBJECT will run a report defined in a Form with filename of an extension of rdf but NOT jsp NOR rep
    2. How can I run a JSP report from a Form?
    3. Can I use JDeveloper 9.0.3.1 to deploy a JSP Report?

  • Calling reports through oracle 9i forms

    Please tell me how do i call the reports through forms9i. If was doing the same way by using find_report_object ('report4') and then run_report_object(reportid).But this not working....
    Please help... it is pretty urgent.
    thanks in advance
    savita rao

    declare
    pl_id paramlist;
    emp varchar2(100);
    begin
    go_block('control');
    first_record;
    if :control.empno is not null then
    loop
    emp:=cond||''''||:control.empno||''',';
    exit when :system.last_record='true';
    next_record;
    end loop;
    emp:=substr(cond,1,length(cond)-1);
    end if;
    :control.emp:='"('||cond||')"'; ----formating in “(‘7369’,’7499’)”
    ----calling the report and passing parameters to it---
    pl_id:=get_parameter_list('empno');
    if not id_null(pl_id) then
    destroy_parameter_list('empno');
    end if;
    pl_id:=create_parameter_list('empno');
    add_parameter(pl_id,'year',text_parameter,emp);
    add_parameter(pl_id,'paramform',text_parameter,'no');
    Run_Product(REPORTS, 'c:\emp.rep', SYNCHRONOUS, RUNTIME, FILEYSTEM, pl_id, NULL)
    end;

  • Netscape 7 replaces form window when calling reports

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

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

  • 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

  • Calling Report from Menu (Oracle Forms 10g)

    We have the applications in Forms6i & Reports 6i (Client Server) and migrating to Forms 10g and Reports 10g. We have the menu, from that menu we are calling all the forms and Reports. For especially Reports earlier we user RUN_PRODUCT but now 10g it is not working. How can call the report using RUN_REPORT_OBJECT
    Important things we have some dynamic parameters (input) to the each report. That means when i called the report from the menu i need to get first parameter form to take the parameters and then can be run the report.

    Here is the code to call report from menu in 10g
    DECLARE
    pl_id ParamList;
    repid REPORT_OBJECT;
    v_rep varchar2(100);
    v_server VARCHAR2(100);
    rep_status varchar2(100);
    v_host VARCHAR2(100);
    BEGIN
         select rep_server into v_server from reports_data;
         select machine into v_host from reports_data;
    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,'P_C_CODE',TEXT_PARAMETER,:GLOBAL.COMPANY);
    Add_Parameter(pl_id,'P_B_CODE',TEXT_PARAMETER,:GLOBAL.BRANCH);
         repid := find_report_object('REPORTOBJ');
         SET_REPORT_OBJECT_PROPERTY(repid,REPORT_FILENAME,getpath||'E_VOUCHER_ENTRY.RDF');
              SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,SYNCHRONOUS);
              SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'htmlcss');
              SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,v_server);
              v_rep := RUN_REPORT_OBJECT(repid, pl_id);
              rep_status := REPORT_OBJECT_STATUS(v_rep);
              WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED')
                   LOOP
                        rep_status := report_object_status(v_rep);
                             message('Running');
                   END LOOP;
              IF rep_status = 'FINISHED' or rep_status is NULL THEN
                   --Display report in the browser
                   WEB.SHOW_DOCUMENT('http://'||v_host||'/reports/rwservlet/getjobid'||substr(v_rep,instr(v_rep,'_',-1)+1)||'?'||'server='||v_server,'_blank');
              ELSE
                   null;
         END IF;
    END;

  • Error calling Report and unable to bind Report Server

    Hi,
    I use Oracle Database 10g with Oracle Developer 10.1.2, in Windows 2000.
    I don't have nor use Oracle Application Server though.
    I tried to call a report from a Form, using Run_Report_Object.
    But the following error appeared.
    Error FRM-41213 Unable to connect to Report Server rep_<computer_name>
    I also tried to call a report, using Web.Show_Document.
    It launch another web browser, but the following error occured
    REP-51002: Bind to Reports Server rep_<computer_name> failed
    Based on the white paper of Oracle Application Server 10g - Integrating Oracle Reports in Oracle Forms Services applications.
    I create my own report server using following command
    rwserver server=repsrv.
    Another java-based windows showed up. It shows that the server 'repsrv' is ready.
    I do the following:
    1. Navigate to http://localhost:8889/reports/rwservlet using web browser.
    It showed OracleAS Report Services - Servlet Command Help page.
    But there is no other window popup (The white paper stated that a 'in process' server
    should be invoked when starting a report for the first time).
    2. Navigate to http://localhost:8889/reports/rwservlet?userid=PRACTICE/PRTC@MYDB&report=C:\PRACTICE\FORM\MODULE1.JSP&destype=cache&desformat=html&paramform=no&p_1=P1&p_1=P2
    my schema is PRACTICE, password PRTC and database instance MYDB
    the report path = C:\FORM\MODULE1.JSP
    The following error occured
    REP-51002: Bind to Reports Server rep_<computer_name> failed
    3. Finally, I tried
    http://localhost:8889/reports/rwservlet?server=REPSRV&userid=PRACTICE/PRTC@MYDB&report=C:\PRACTICE\FORM\MODULE1.JSP&destype=cache&desformat=html&paramform=no&p_1=P1&p_1=P2
    The following error occured
    REP-51002: Bind to Reports Server repsrv failed
    I don't understand.
    It seems that the Report Service is not recognized although the java-based window state that the Report Server (repsrv) is ready.
    My questions:
    1. Does it means that my report server is not running?
    Or it is running but the web browser didn't recognize it?
    I use Internet Explorer 5 and Netscape 7, both of them showed the same error message.
    2. The paper said there is supposed to be 2 type of server, 'In process' and custom server.
    Both of them will create a configuration file in /reports/conf in DevSuiteHomeDirectory.
    I can see the custom report server's configuration file which I create using rwserver
    (repsrv.conf)
    but I can't see the 'in process' server's configuration file (rep_<computer_name>.conf).
    What am I supposed to do?
    3. Is there any steps with I supposed to do after the installation?
    Well, I didn't find any error during the installation, everything seems to be just fine.
    Perhaps, I need to modify some files, specifya report server name,
    create the 'in process' server manually.
    Many thanks,
    Imelda

    Hi,
    I have already tried your suggestion.
    Since I am in Windows 2000 platform, so I do the first suggestion from the documentation.
    If the host machine is not in a network (that is, it is a standalone machine).
    Solution for Windows platform: Install the MS loopback adapter, as described on the Miscrosoft Web site (http:\\microsoft.support.com). Then, specify an IP address for your machine (either XP or Windows 2000), as follows:
    1. On your desktop, right-click My Network Places, and choose Properties.
    2. Right-click the MS loopback adapter, and choose Properties.
    3. In the Properties dialog box, select Internet Protocol (TCP/IP), and click Properties.
    4. Select Use the following IP address, and enter a valid IP address. The subnet mask field will automatically populate. Do not use the local host IP (that is, 127.0.0.1). For example, enter: 198.162.1.1.
    5. Click OK, and follow the instructions displayed.
    There is also solution for UNIX platform.
    But I do the Solution for Windows platform only.
    But still I've got the following error message :
    REP-51002: Bind to Reports Server rep_<computer_name> failed
    And in the command line of OC4J which I started, the following error appeared :
    Not able to load oracle.reports.util.EnvironmentGlobal class
    Using oracle.reports.util.Environment class
    BTW,
    I also tried to use the command lin rwrun :
    rwrun report="D:\My Documents\TryReport\module1.jsp" userid=scott/tiger@orcl destype=file desformat=pdf desname="D:\My Documents\TryReport\module1.pdf"
    And somehow a PDF file appeared.
    It contains the output of the report I created.
    It exactly the same as the preview of the web layout which is run from Report Builder (Run Web Layout CTRL-R).
    Could this mean that the In-Process server is running?
    Perhaps the browser did not understand how to connect to Report Server?
    Is there anything should be done?
    Should I also do the Solution for UNIX platform? (Mine is Windows)
    And, why for Oracle Form (running as a servlet), everything seems to be normal?
    Does the Oracle Form use different server from Oracle Report?
    The problem is only when I tried to call report using a button inside Oracle Form.
    (Run_Report_Object and Web.Show_Document)
    Any light would be grateful.
    Many thanks,
    Buntoro

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

  • FRM - 41219 CANNOT FIND REPORT INVALID ID  - CALLING REPORT FROM FORM

    I am using Developer Suite 10g (forms 9i, reports 9i) . windows XP.
    I am using the following code in WHEN-BUTTON-PRESSED-PRESSED trigger in form to call report.
    DECLARE
    repid REPORT_OBJECT;
    v_rep VARCHAR2(100);
    rep_status varchar2(20);
    BEGIN
    repid := find_report_object('C:\EMP.RDF');
    v_rep := RUN_REPORT_OBJECT(repid);
    END;
    as as result It is displaying FRM - 41219 CANNOT FIND REPORT INVALID ID.
    I have used the EMP.JSP also in find_report_object built-in. But there is no difference.
    what could be the reason - plz give the solution.
    with thanks
    by GMS

    Unless you made a mistake and overlooked it, what I suggested should work. Having said that, you did not mention the exact Forms version you are using. There may have been a problem in the version you are using which was corrected in a later release. I tested the example I offered using Forms 10.1.2.3 and it works correctly. Carefully review what you did. Verify that the file actually exists in the file system. Also, I would recommend renaming the file with all lower case letters and referencing it in the form with all lower case letters. Here is the complete code of the form I tested. I will also include the property values from the Report object.
    Report1 settings:
    Name - REPORT1
    Subclass Information -
    Comments -
    Filename - dummy.rdf
    Execution Mode - Batch
    Communication Mode - Synchronous
    Data Source Data Block - <Null>
    Query Name -
    Report Destination Type - File
    Report Destination Name -
    Report Destination Format -
    Report Server -
    Other Reports Parameters - On the form create the following items in BLOCK1:
    Text fields:
    <li>SERVERNAME
    <li>REPNAME
    <li>OTHERPARAMS
    Button:
    <li>CALL_REP
    In the WHEN-BUTTON-PRESSED trigger add this code:
    Declare
    repid REPORT_OBJECT;
    v_rep varchar2(256);
    rep_status varchar2(256);
    Begin
       repid := find_report_object('REPORT1');
    -- Set Report Object properties
    SET_REPORT_OBJECT_PROPERTY(repid, REPORT_DESTYPE, CACHE);
    SET_REPORT_OBJECT_PROPERTY(repid, REPORT_DESFORMAT, 'HTML');
    -- Comm mode 1 = SYNCHRONOUS
    -- Comm mode 2 = ASYNCHRONOUS
    SET_REPORT_OBJECT_PROPERTY(repid, REPORT_COMM_MODE, 1);
    SET_REPORT_OBJECT_PROPERTY(repid, REPORT_SERVER, :block1.SERVERNAME);
    SET_REPORT_OBJECT_PROPERTY(repid, REPORT_FILENAME, :block1.REPNAME);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER,:block1.otherparams);
    SYNCHRONIZE;
    -- Run report and get status
    v_rep := RUN_REPORT_OBJECT(repid);
    rep_status := report_object_status(v_rep);
    SYNCHRONIZE;
    -- Wait for Reports to generate results
        WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED')
        LOOP
          rep_status := report_object_status(v_rep);
        END LOOP;
        SYNCHRONIZE;
    -- If DESTYPE is appropriate for displaying to user, execute WEB.SHOW ;   
        IF rep_status = 'FINISHED' THEN
          WEB.SHOW_DOCUMENT('/reports/rwservlet/getjobid'||substr(v_rep,instr(v_rep,'_',-1)+1)||'?'||'server='||:block1.SERVERNAME,'_blank');
        ELSE
          message(rep_status);
        END IF;  
    END; When you run the form, enter the Report Server name and the Report filename (include the path if you have not configured REPORTS_PATH). Then click on the button. Note that the substr logic may need to be altered slightly if you are using an old version of Forms/Reports.
    .

  • Getting rep-3002 when calling report from form on web

    i am getting rep-3002 when i call report from a form on web environment. Report is in character mode. It is coming proper if i change it to bitmap. but my requirement is of character mode. pl. give some solution.

    Hello,
    If you are running in WinNT/2000 environment, the NT/2000 user which runs the Report Server service must have a printer defined. In the control panel, look at the properties for the Report Server to see what user it runs as. Log in as that user and make sure a default printer is defined.
    Regards,
    The Oracle Reports Team --skw                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Run_Report_Object -- Calling report from Form

    Hello:
    Where can I find a technical notes on VALID combination of system parameters in calling report using run_report_object from FORMS in 10G?
    Not sure what are valid values and combinations. Do we HAVE to pass a REPORT SERVER along with run_report_object? what formats are valid along with destype etc?
    Thanks

    http://www.oracle.com/technology/products/forms/pdf/10g/frm10gsrw10g.pdf

  • Calling Report From Form To Many Destinations

    Hi
    I am calling reports from forms using SET_REPORT_OBJECT_PROPERTY and then run_report_object.
    I dont know the destination until runtime of the report which is ok as I can pass this in via my procedure, but if that destination is many ie mail and file what is the best way to distribute the report?
    I could call my procedure for each destination but that seems a bit unefficient since the report would be created many times, is there another way?

    what about adding a drop-down-list near your report-button where you can choose the destination?
    when you click the report-button you simply read the value selected in the drop-down-list and send it to your reports-server too.

  • Calling report from form in Web environment

    Hi,
    We are in the process of migrating our C/S appication (developed in Developer2k) to intranet using OAS. My question :
    a) Is there any other way to call report from a form other than web.show_document?
    b) When a report is called from the report server(using web.show_document), a log-in screen comes up unless the login and password is passed as parameter. Only problem with this is the password shows in the URL. Is there any other way to make the call so that the login & password does not show and the user won't have to login a second time to run the report?
    Any reply would be appreciated..Thanks

    1. Yes you can use run_product package procedure to call reports on web, Oracle documentation says that run_product command will run in web env.
    2. Yes you can hide username & password from user, it depends on which method you are using to call reports, if you are using web cgi then add username & password in file "cgicmd.dat" and "oascmd.dat" for web catridge or in cartridge parameter setting you will find this files in directory "\orant\report60\server\".
    Darshan Desai
    [email protected]
    null

  • Calling Report from Form Error ORA-06508

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

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

Maybe you are looking for

  • Is there any way to have a smart mailbox search sub-folders

    My wife uses Mail.app for her business in which gets hundreds of emails a day and managing them all is quite a challenge. One important goal of e-mail management is archiving certain emails in folders (and sub-folders) without creating duplicates.  W

  • My iPod Nano gets full with only 14 songs???

    Hi all a couple of days ago I got my new 1GB iPod Nano. Now, the 1GB Nano is supposed to hold up to 240 songs. Right? But what happens with mine is that it gets very quickly filled up and I can't update it through iTunes! I tried many things, I even

  • Can no longer connect to SMB server after upgrading to Lion

    We have a MacBook Pro that was running 10.6.8. The user upgraded to Lion, and can no longer connect to a Windows 2008 file server. (We have two offices connected through a hardware tunnel, but i do not think this is the issue.) We have tried to conne

  • Font Size from Desktop 4.1 to 4.1.4 is Too Small--can it be changed.

    I notice that when I upgraded from Desktop 4.1 to Desktop 4.1.4 that the font size for memos, calendar, contacts, .etc is considerably smaller than it was in DT 4.1. I've seen some posts here that seem to suggest that there is NO way to change the fo

  • I have a CD stuck in my laptop...

    Any tips/tricks to get a cd out of the side slot ? It is trying to get it out but it keeps re-loading it instead