Run Report Object and Lexical Parameters

Hi all,
I am trying to pass a value for a lexical parameter in a report. The report query is as follows:
SELECT EMP.EMPNO, EMP.ENAME,
EMP.JOB, EMP.MGR, EMP.HIREDATE, EMP.SAL, EMP.COMM, EMP.DEPTNO
FROM EMP
&Where_St
The Where_St is a lexical parameter which will hold the Where Statement the end user need it to be executed.
I build a form on the EMP table in order to let the user get benefit from the Enter Query/Execute Query functionality in forms. Like this, he/she can query the data he likes with the condtions he wish to have.
I created a button to call the report I did before from the form
The Button has the following code in the trigger
WHEN-BUTTON-PRESSED
declare
rep_id report_object;
rep_status varchar2(30);
Where_Pos number(3);
Where_Statement varchar2(200);
begin
Where_Pos := InStr(:System.Last_Query, 'WHERE');
if Where_Pos > 0 then
Where_Statement := SubStr(:System.Last_Query,
Where_Pos);
end if;
rep_id := Find_Report_Object('emp_rep');
Set_Report_Object_Property(rep_id, REPORT_EXECUTION_MODE, RUNTIME);
Set_Report_Object_Property(rep_id, REPORT_COMM_MODE, ASYNCHRONOUS);
Set_Report_Object_Property(rep_id, REPORT_DESTYPE, PREVIEW);
Set_Report_Object_Property(rep_id, REPORT_OTHER, 'MAXIMIZE=YES Where_St=' | | Where_Statement);
rep_status := Run_Report_Object(rep_id);
end;
Whenever I run the report it did not show up at all. I doubt the value I am passing, so I deleted the line that pass the value for the Lexical parameter to the report. The report worked just fine.
Moreover, I passed this value using Run_Product to the reports and the report is working fine with the forms. But I would like to use Run_Report_Object to pass this value to the reports.
Any ideas??
Thanks

PROCEDURE PROC_test IS
repid REPORT_OBJECT;
v_rep VARCHAR2(100);
rep_status VARCHAR2(100);
v_server_length NUMBER;
REP_SERV VARCHAR2(100);
paramlist_id ParamList;
paramlist_name VARCHAR2(10):='tmplist';
Begin
repid := find_report_object('HIST_DISPENSE');
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_EXECUTION_MODE,RUNTIME);
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,'REP_ORACLEWEB');
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER,'paramform=no R_ST_DT='||:BLK_A_NUM_GT7_NO_HIS_DISP.FROM_DATE 'paramform=no R_END_DT='||:BLK_A_NUM_GT7_NO_HIS_DISP.TODATE);
v_rep := RUN_REPORT_OBJECT(repid,paramlist_id);
message('vrep is '||v_rep);
rep_status := REPORT_OBJECT_STATUS(v_rep);
message('status is'||rep_status);
v_server_length := LENGTH(GET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER));
message('server length is '||v_server_length );
WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED')
LOOP
rep_status := report_object_status(v_rep);
message('REP STATUS IS'||rep_status);
END LOOP;
IF rep_status = 'FINISHED' THEN
/*Display report in the browser*/
WEB.SHOW_DOCUMENT('http://10.20.56.20:7778/reports/rwservlet/getjobid'||
substr(v_rep,v_server_length + 2)||'?'||'server=REP_ORACLEWEB','_blank');
ELSE
message('Error when running report');
message('SQLERRM ' ||SQLERRM);
END IF;
end;
Hi
I'm having problem passing two paramters, Pl helpme by correcting the syntax.
Thx

Similar Messages

  • Running Reports 6i and 9i at the same time

    I was wondering what the issues were with running Reports 6i and 9i at the same time. We are planning on up grading at a client, and I heard that there are some problems with doing this. I was thinking that installing them in different ORACLE_HOME's would help keep problems to a minimum. At home I have Reports 6i and 9i running, and I have not seen any problems.

    We suggest you install 6i and 9i at different oracle home. There are no known issue about running 6i and 9i at the same time.
    Thanks,
    -Shaun Lin

  • Help desiging a 10g Oracle Report with Matrix and Lexical Parameters - Long

    Hello all:
    I apologize in advance for this long post.... I'm using Oracle Reports 10g (9.0.4.0.33). First -- the question:
    I need to create a Matrix where the rows come from one database table
    (TABLE1) and the columns and cell contents come from a linked query (pulled from TABLE2) that is generated with lexical parameters based on the current TABLE1 row. The lexical parameters contain a WHERE clause for the TABLE2 query. Basically, I have a linked query between TABLE1 and TABLE2. I need to generate a Matrix around it.
    Does anyone know if this is even possible?
    Here's the background on the application, if that is helpful...
    I have an application where I maintain database tables containing names/addresses along with information pertaining to them. As part of the processing, I need to produce reports that contain statistics based on values in the table. For example, each row has a field RTYPE that identifies the Record Type (1-Suppress, 2-Buyer, 3-Inquirer). Each row also has a last purchase date field. The statistics produced for this field would look like this:
              2001     2002     2003     11/03     12/03 01/04     02/04 03/04     04/04     05/04 ...
    Buyer      100 150 250 30 25 15 8 9 22 83
    Inquirer     1000 800 493 ...
    Suppress ... ...
    Totals ... ...
    Each cell contains the count of the number of records that have the corresponding RTYPE and Last Purchase date. The dates across the top are determined by the most recent purchase date in the file. We count the last 12 months, month by month, and then anything older than that is grouped by
    year of purchase. So, the column headings are variable.
    The SQL query for this example looks like this:
    SELECT CASE WHEN rtype = '2' THEN 'Buyers'
    WHEN rtype = '3' THEN 'Inquirers'
    WHEN rtype = '1' THEN 'Suppress'
    END HLDESC,
    CASE WHEN MONTHS_BETWEEN(trunc(:MAXHLDATE,'MONTH'),
    TRUNC(T.HOTLINE,'MONTH')) < 12
    THEN TO_CHAR(T.HOTLINE,'YYYYMM')
    ELSE TO_CHAR(T.HOTLINE,'YYYY') || '00'
    END YYMM_8,
    CASE WHEN MONTHS_BETWEEN(trunc(:MAXHLDATE,'MONTH'),
    TRUNC(T.HOTLINE,'MONTH')) < 12
    THEN TO_CHAR(T.HOTLINE,'MM/YY')
    ELSE TO_CHAR(T.HOTLINE, 'YYYY')
    END FmtDate_8,
    COUNT(*) HLCOUNT
    FROM &TABLENAME T
    GROUP BY CASE WHEN rtype = '2' THEN 'Buyers'
    WHEN rtype = '3' THEN 'Inquirers'
    WHEN rtype = '1' THEN 'Suppress'
    END,
    CASE WHEN MONTHS_BETWEEN(trunc(:MAXHLDATE,'MONTH'),
    TRUNC(T.HOTLINE,'MONTH')) < 12
    THEN TO_CHAR(T.HOTLINE,'YYYYMM')
    ELSE TO_CHAR(T.HOTLINE,'YYYY') || '00'
    END,
    CASE WHEN MONTHS_BETWEEN(trunc(:MAXHLDATE,'MONTH'),
    TRUNC(T.HOTLINE,'MONTH')) < 12
    THEN TO_CHAR(T.HOTLINE,'MM/YY')
    ELSE TO_CHAR(T.HOTLINE, 'YYYY')
    END
    ORDER BY CASE WHEN MONTHS_BETWEEN(trunc(:MAXHLDATE,'MONTH'),
    TRUNC(T.HOTLINE,'MONTH')) < 12
    THEN TO_CHAR(T.HOTLINE,'YYYYMM')
    ELSE TO_CHAR(T.HOTLINE,'YYYY') || '00'
    END
    There might be a better way to write this, but that isn't the issue at the moment.
    I have many different tables, each with different fields. I need to produce counts on each of those fields. Some of those fields have a limited number of values where I need to count the occurrences and attach a description (like the RTYPE counts above). Others, like Last Purchase Amount, require counts within ranges (between 0 and 9.99, 10 and 19.99, etc.). Still others are "multiple choice"-style fields (such as products purchased), where we have multiple single-char flags that are not null when the corresponding products are purchased. In this case, we need to produce statistics that look like this:
              2001     2002     2003     11/03     12/03 01/04     02/04 03/04     04/04     05/04 ...
    Product 1 .........
    Product 2 .........
    The worst of the bunch is a field where I need to count the occurrence of each value within it (hundreds of values) without entering descriptions, so I don't know how many rows will appear ahead of time. This is used for "source codes" that identify where the name/address came from. They look similar to the RTYPE above, but the leftmost column contains each value from the field rather than a description. There are so many possible values and they change so often that it isn't feasible to enter a description for each one.
    Right now, I manually create an Oracle Report for each table when I design/load it. This is becoming difficult to manage, since I have over 150 of them now. Each of these reports can have any number of matrices to display (the largest right now has about 25).
    The new table structure to generate these reports consists of two tables: A COUNTHDR table and a COUNTROW table. The COUNTHDR table represents a single Matrix within the report. It contains info such as a heading for the Matrix and whether column totals should be calculated or not. The COUNTROW table contains a description for each row and an SQL Fragment that contains an appropriate WHERE clause to match the description. In the event of a "source code" style count, COUNTHDR has the name of the field to count. COUNTROWs won't exist, so I'll be handling those counts differently. But, ignoring that issue for now, the report structure looks like this:
    + Q1 +
    |
    + COUNTHDR +
    |
    + COUNTROW +
    | linked query
    + Q2 +
    |
    + COUNTDTL +
    Q2 is the query with lexical parameters for the table and "where clause" that identifies the actual statistic I need counted. I need fields from COUNTROW and COUNTDTL to form a Matrix.
    Can this be done? How?
    Of course, if anyone out there has a better idea on how to achieve my goal of not writing a report per table, please let me know!! :-)
    TIA
    Eric Raskin
    PS. This structure does not exactly duplicate my original query, since multiple Matrix rows are created by the single SQL query given in the example. Instead, I'll end up executing an SQL query for each row, which is less than desirable. The design will need some tweaking...
    PPS. I have tried handling this problem by pre-counting the target table and storing the results in a COUNTCOL table, containing the details of the matrix. This actually does work, but the performance is terrible. I have one "source code"-style count that generated over 20,000 detail cells, including all the "0" cells needed to fill out the matrix. If you don't generate the "0" cells, you get holes in the matrix presentation and/or error messages (which I can explain if you wish). I never did get Oracle Reports to print this one -- I gave up after an hour of runtime on a P4 3GHz machine connected via Gigabit Ethernet to the server. Hence the attempt to push the SQL Queries back into the Oracle Report itself.
    Eric H. Raskin Voice: 914-765-0500
    Professional Advertising Systems Inc. Fax: 914-765-0503
    200 Business Park Dr Suite 107 [email protected]
    Armonk, NY 10504

    Hi there
    here's example of my code
    Html header of the page :
    <script language="JavaScript" type="text/javascript">
    function callMyPopup (formItem1,formItem2) {
    var formVal1 = document.getElementById(formItem1).value;
    var formVal2 = document.getElementById(formItem2).value;
    var url;
    url = 'f?p=&APP_ID.:8:&APP_SESSION.::::P8_PROJECT,P8_PDRL_NO:' + formVal1 + ',' + formVal2;
    w = open(url,"winLov","Scrollbars=1,resizable=1,width=800,height=600");
    if (w.opener == null)
    w.opener = self;
    w.focus();
    </script>
    troubleshooting
    1.Test each parameter separate first - each work ?
    2.Use code above, rerig it, create multiple parameter
    3.try again...
    hope this helps...
    check your orginial source (page where items are) - what data

  • FRM-41214 unable to run report from forms with parameters

    Hi all,
    I am unable to run a report from forms if I pass parameters. Report is running fine in reports builder and in url if I access the report straightly.
    I used set_report_object_property to pass the parameters.
    Any clues to solve this problem?
    Priya

    Hi Jeneesh,
    Code is below:
    myreport1 :=find_report_object('MYREP');
    reportdata := Get_Parameter_List('reportsdata');
    IF NOT Id_Null(reportdata) THEN
    Destroy_Parameter_List( reportdata );
    END IF;
    reportdata := Create_Parameter_List('reportsdata');
    Add_Parameter(reportdata, 'account_number', TEXT_PARAMETER, :parameter.account_number);
         /* Setting the properties into Report Object */
         SET_REPORT_OBJECT_PROPERTY(myreport1, REPORT_COMM_MODE, SYNCHRONOUS);
         SET_REPORT_OBJECT_PROPERTY(myreport1, REPORT_DESTYPE, CACHE);
         SET_REPORT_OBJECT_PROPERTY(myreport1, REPORT_DESFORMAT, 'htmlcss');
         SET_REPORT_OBJECT_PROPERTY(myreport1, REPORT_SERVER,vc_reportserver);
                   SET_REPORT_OBJECT_PROPERTY(myreport1, REPORT_FILENAME, 'C:\priya\forms\EmcySummary.jsp');
              SET_REPORT_OBJECT_PROPERTY(myreport1,REPORT_OTHER,'account_number='|| :parameter.account_number);
         /* Value of v_rep identifies the report that is currently running either locally or on a remote report server */
         vrep := RUN_REPORT_OBJECT(myreport1,reportdata);
    /* Checking for Report Server is started or not, if not throw an exception else proceed */
         if vrep = vrep||'_0'then
         raise form_trigger_failure;
    end if;
         vjob_id := substr(vrep,length(vc_reportserver)+2,length(vrep));
         vrep_status := REPORT_OBJECT_STATUS(vrep);
         /* Checking the status of the report */
         WHILE vrep_status in ('RUNNING','OPENING_REPORT','ENQUEUED')
    LOOP
    vrep_status := report_object_status(vrep);
    END LOOP;
    /* When the report status is successful then report is generated in Web */
         IF vrep_status = 'FINISHED' THEN
         --     COPY_REPORT_OBJECT_OUTPUT(vrep,v_tempstorage);
              WEB.SHOW_DOCUMENT('/reports/rwservlet/getjobid'||vjob_id||'?server='||vc_reportserver, '_blank');
         END IF;
    ---Any clues?

  • Running report in background using parameters

    Hi friends,
    i have an abap report that needs to run in background because it runs longer than profile timeout parameter allows to. now my question is:
    if this report uses dynpro with parameters, how do i have to modify it to run in background and to pass those parameters to ? ( SUBMIT ? ).
    Thanks for your help!
    Clemens

    Hi,
    DATA: seltab type table of rsparams,
          seltab_wa like line of seltab.
      seltab_wa-selname = 'PNPPERNR'.
      seltab_wa-sign    = 'I'.
      seltab_wa-option  = 'EQ'.
    load each personnel number accessed from the structure into
    parameters to be used in the report
      loop at pnppernr.
        seltab_wa-low = pnppernr-low.
        append seltab_wa to seltab.
      endloop.
      SUBMIT zreport with selection-table seltab
                                    via selection-screen.
    Reward points if useful....

  • Wesite Login and navigate to reports page and pass parameters to the forms page and download file

    Hello,
    New to C# scripting in SSIS. Everyday I download data file from a website. I need to schedule a page to include a script to auto download from the website everyday by navigation to reports page and submenu for a particular report. After I click it opens
    a webpage where I need to select my criteria and download the file to a table. This is what so far I got
    Object mySSISConnection = Dts.Connections["websiteConnectionManager"].AcquireConnection(null);
    MessageBox.Show("Success")
    I got the success message. After login, I need to navigate to select reports and then from submenu select the everyday report and pass the input parameters to the webpage and download the file and export to a tables. Any help. Not much coding I know. Learning!!
    Any help really appreciate it.
    Thanks
    Jagan

    Whoever instructed you to so is not prudent, once the report definition changed the package will break.
    This is not the proper data interexchange.
    Here is though an example on how to generate a SSRS report and download as a file: http://sandeep-aparajit.blogspot.ca/2010/02/how-to-execute-and-save-ssrs-report.html
    And then to load the file into OLEDB destination http://www.daimto.com/ssis-lesson-2-first-package/
    Arthur
    MyBlog
    Twitter

  • Paasing dynamic parameter to Run reports type of form function

    Hi,
    I want to create form function "XXFORMFUNCTION"which can be invoked as a concurrent program in SRS window. So that the click of button, I will call form function "XXFORMFUNCTION", and it will invoke a concurrent program.
    To do this, I have created form fucntion of "Run reports" type and passed parameters as
    CONCURRENT_PROGRAM_NAME = 'FNDACTIVEUSER' PROGRAM_SHORT_NAME = 'FND'.
    But my requirement is to pass this CONCURRENT_PROGRAM_NAME as a parameter. In above case I have hard coded it.
    I want something like this
    CONCURRENT_PROGRAM_NAME = &prg PROGRAM_SHORT_NAME =&appl
    I will pass &prg and &appl as a parameter to form function from OAF form..
    How to achieve this?
    Regards,
    Parag

    I was able to get a Page item set to the value I want to use in my tabular form.
    I created a Page Item 'P1358_HOLD_ATTENDANCE_CODE' and I can see it getting set to the correct value.
    I tried to create another TRUE condition in my Dynamic Action to set the tab form select list item (f03), but it's not working.
    here is what I tried:
    var row = $x_UpTill(this.triggeringElement, 'TR');
    var otherElement = $('input[name="f03"]', row)[0];
    otherElement.value = $x('P1358_HOLD_ATTENDANCE_CODE').value;

  • Problems after creating report object

    I am using Crystal Reports Server XI R2 SP4. I created a report object from a simple Crystal report successfully. Even the thumbnail showed the report data even though the report does not save data.
    However when I view the report object in InfoView or schedule it there is no report data even though Crystal Reports Viewer displays data when run against the same DB with the same parameters.
    I get the same results with any report object I create in CMC but I was to able to successfully create and run report objects the first few(5) times after which I have been getting this result.
    Is there any kind of report or job limit?
    I made max records to retrieve unlimited and bumped # of jobs in every server from 5 to 50 and the age of oldest report to retrieve from cache to 0 mins.
    Please help!

    I'm not sure this is a JAVA problem, but if you're getting an ACCESS_VIOLATION exception from the JVM a method that provides more detailed information is to check for exceptions after every JAVA function called from the native code with (*jenv)->ExceptionCheck(jenv) and if true get information with (*jenv)->ExceptionDescribe(jenv) Making mistakes in native code constructing JAVA objects has been my most frequent cause of ACCESS_VIOLATION exceptions. I hope this helps.

  • Run Report From Menu

    I am trying to run the reprt through menu but no out put
    I run the report thru the browser
    http://it-test:8889/reports/rwservlet?server=repsrv&report=c:\test\t1.rep&userid=scott/[email protected]&desformat=pdf&destype=cache&paramform=yes
    It works fine and i am getting the output
    But when i try to run the same report through menu no out put
    Code is like this:
    DECLARE
    repid REPORT_OBJECT;
    v_rep VARCHAR2(100);
    rep_status VARCHAR2(20);
    plid ParamList;
    vParamValue number;
    REP_PROPERTY VARCHAR2(100);
    v_show_document     VARCHAR2 (2000) :=
    'http://it-test:8889/reports/rwservlet?';
    v_connect     VARCHAR2 (200) := 'userid=scott/[email protected]';
    v_report_server     VARCHAR2 (30) := 'repsrv';
    v_report_name     VARCHAR2(100) := 'c:\test\t1.REP';
    v_format     VARCHAR2(12) := 'PDF';     
    BEGIN
    plid := Get_parameter_List('tmp');
    IF NOT Id_Null(plid) THEN
    Destroy_parameter_List( plid );
    END IF;
    plid :=Create_parameter_List('tmp');
    repid := FIND_REPORT_OBJECT('t1');
    SET_REPORT_OBJECT_PROPERTY(repid, REPORT_FILENAME, 'c:\test\t1.REP');
    if id_null(repid) then
         pause;
         message('repid is null');
         ELSE
    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_SERVER,'repsrv');
    v_rep := RUN_REPORT_OBJECT(repid,'repsrv');
    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;
    v_show_document := v_show_document
    || v_connect
    -- Report server
    || '&server='
    || v_report_server
    -- Report name
    || '&report='||v_report_name
    -- Reports parameters
    || '&destype=CACHE'
    || '&desformat='||v_format
    || '&paramform=yes' ;
    END IF;
    if
    rep_status = 'FINISHED'then
    pause;
    message('Finished');
    web.show_document(v_show_document,'_blank');
    else
    message ( 'error while running reports-object ' || error_text );
    message ( ' ' );
    clear_message;
    end if;
    END;
    The out put is nothing
    the message displays as finished
    The same i tried with
    web.show_document('http://www.google.com','_blank');
    no out put
    can u tell me what could be the problem??
    I am using Internet Explorer 7
    Thanks
    Elsy

    Hi All,
    In the Internet explorer pop up was blocked
    I unblocked it and its working fine
    Thanks to all

  • Can't run report in ASYNCHRONOUS mode

    Hi All,
    I'm trying to make a report run in ASYNCHRONOUS mode. I want to press a button on a form, submit the report to the reports server and be able to navigate within the form while the report is being executed on the reports server.
    My problem is, no matter what mode I choose (ASYNCHRONOUS or SYNCHRONOUS), the mode ALWAYS ends up being SYNCHRONOUS. After I press the button (code below), I get the hourglass and I can't navigate within the form until the report is finished. Then I can view it.
    The reports server I'm using is installed locally on the same PC I'm testing the form.
    Can someone help me please? I'm using using Forms Builder 9.0.2.9.0.
    Thank you,
    Artur
    declare
         v_repid REPORT_OBJECT;
    v_rep in varchar2(100);
    begin
    v_repid := find_report_object('TEST');
    SET_REPORT_OBJECT_PROPERTY(v_repid, REPORT_EXECUTION_MODE, BATCH);
    SET_REPORT_OBJECT_PROPERTY(v_repid, REPORT_COMM_MODE, ASYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(v_repid, REPORT_DESTYPE, 'CACHE');
    SET_REPORT_OBJECT_PROPERTY(v_repid, REPORT_DESFORMAT, 'PDF'); -- OR HTMLCSS
    SET_REPORT_OBJECT_PROPERTY(v_repid, REPORT_SERVER, :TI_REPORTS_SERVER); -- local pc reports server
    v_rep := RUN_REPORT_OBJECT(v_repid, v_param_list);
    end;

    Arthur,
    Communication mode is soemthing forms handles when calling the run report object. Your code looks fine. You might get a quikc answer if you can post this in Forms mailing list
    Thanks
    The Oracle Reports Team

  • Problems on Running Reports

    Hi,
    we are using Oracle Forms & Reports runtime and builder 6.0.8.22.1, Database Version is 9.2.
    We have a Production, Pre-Live and Testenvironment all the same Database architecture.
    Problem Description:
    We created a Form with some input fields and a button for creating a report. This button creats via a pl/sql script a report object and run the report.
    This works fine on production system with calling the formsruntime with parameter userid=scott/tiger@productionserver. When we calling the completly same script, only we change the userid on "userid=scott/tiger@testserver" the forms would work fine but the report generating failed.
    The Forms and Reports are compiled against the production environment.
    Where could be the problem, it's all the same only we change the connection string.
    Are there any connection information in the compiled fmx or rep file.
    Where get the Report_Object the connection information.
    Best Regards
    Markus

    the third step is when u will run the servelts on the application server there is also a sample link form that u can use to run the report for testing.
    thanks

  • Error while running report 10g

    DECLARE
         repid REPORT_OBJECT;
         v_rep VARCHAR2(1000);
    rep_status VARCHAR2(2000);
    BEGIN      
         repid := find_report_object('REPORT2');      
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_EXECUTION_MODE,BATCH);
    set_report_object_property(repid, report_comm_mode, 1);
    set_report_object_property(repid, report_destype, cache);
    set_report_object_property(repid, report_desformat, 'PDF');
    set_report_object_property(repid, report_server, 'myserver');
    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;
    message(rep_status);
    IF rep_status = 'FINISHED'
    THEN
    web.show_document('http://localhost:8889/reports/rwservlet/showjobid' || substr(v_rep, instr(v_rep, '_', -1) + 1)
    || '?server = myserver');
    ELSE
    message('error while running reports-object ' || error_text);
    message(' ');
    clear_message;
    END IF;
    EXCEPTION
         WHEN OTHERS THEN
    message('error while running reports-object' || error_text );
    END;
    I have been trying the whole 5 days running this report but it is giving me error, i am making simple report which select all data and display from emp table, please help. Error I am getting is unable to run the report and Terminated_Report.

    Hi,
    Check this link...How to call a report in Forms 10g ?
    Hope this works...
    Hamid

  • Checkboxes displayed as diamonds when running reports in APEX

    I read and implemented the steps offered in other postings on this subject and the checkboxes appear fine when I run the report locally on my PC. However, when I run the report in APEX (not through web service), the checkboxes are still not showing up. This is after uploaded the Wingdings font to the BI Publisher server; did the font mapping and defined the Property for RTP Template/ Characters used for checkbox to: Wingdings;254;111.
    Does anyone have the solution to this?
    These are the versions we're using:
    Application Express 4.0.2.00.07
    Oracle BI Publisher 11.1.1.5.0
    Thank you.

    Hi,
    Give it a try by using the close and dispose method for report object and also use the GC.collect.
    Hope it helps!!
    Amit

  • Is it possible to create a Report Object in a menu?

    Hi all,
    I 'm working on an oracle report wherein the user will not give any parameter.
    They would like to view the report by clicking on the menu option for this report and it should then open the report in an new browser window
    in pdf format.
    My question:
    Is it possible to create a report object in the menu?how can we do this?
    I'm working on Oracle reports version Report Builder 10.1.2.0.2
    TIA

    Thanks for your prompt reply.
    Through form I'm able to create report object and report is displayed successfully.
    I'm using the following code:
    DECLARE
              report_id Report_Object;
              ReportServerJob VARCHAR2(100);
              rep_status VARCHAR2(50);
    BEGIN
              report_id:= find_report_object('Report1');
              SET_REPORT_OBJECT_PROPERTY(report_id,REPORT_OTHER,'vouno='||:vouno||' paramform=no');
              ReportServerJob:=run_report_object(report_id);
              rep_status:=REPORT_OBJECT_STATUS(ReportServerJob);
              WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED')
              LOOP
                        rep_status := report_object_status(ReportServerJob);
              END LOOP;
              IF rep_status = 'FINISHED' THEN
              WEB.SHOW_DOCUMENT('http://sushma:8889/reports/rwservlet/getjobid'||
              substr(ReportServerJob,instr(ReportServerJob,'_',-1)+1)||'?'||'server=rep_sushma','_blank');
              ELSE
                        message('Error when running report');
              END IF;
    END;
    I'm not able to use the same code in Menu, as there is no way to create report object "Report1"
    Or is there any was to create object.
    So in place of report_id:= find_report_object('Report1');
    I used report_id:= find_report_object('c:\.... *.RDF');

  • Access Migration Failure: Error 3021 Method 'Run' of object

    I am doing a proof-of-concept to migrate and convert some Access applications.
    I downloaded the migration tool and then tried the Northwind mdb to verify it worked and all went as planned with a SQL output file.
    When I run it against a working copy of the production mdb it gives this error and produces no output.
    Error #3021 – XMLExporter – Method ‘Run’ of object ‘_Application failed *access.mdb” Database Schema Export did not complete successfully.
    I conjecture it is trying to 'Run' the object and not finding it. How can I work around this or fix the error. I am not an Access expert so any ideas are appreciated.
    slavanaway
    Message was edited by:
    slavanaway

    Hi Ian,
    Thanks for the detailed posting, it's very helpful.
    If you are receiving error #2501, it would appear that there's an issue in opening a report in your MS Access database.
    When you open the MS Access database to be exported, can you successfully view your report(s) or do you receive the #2501 error even then? If you receive this error when accessing the reports, I believe it's relating to the printer setup on the machine. The default printer on the machine you are using may be "imcompatible" with the format of your MS Access report. Try to select another printer on your network as the default, or even try re-installing the default printer. If this does not resolve your issue, please let me know.
    I hope this helps.
    Regards,
    Hilary

Maybe you are looking for

  • Adobe after effects cs5 help

    i downloaded the trial and magic bullet advance hd trial.i can't figure out how to convert my 4:3 video to 1080p hd. can someone explane the steps i need to take? thank you in advance.

  • Error while running converted JCL / proc from Tuxedo Workbench

    Hi , I am trying to convert and run a JCL / Proc and Cobol code through Oracle Tuxedo  Rehosting Workbench . I followed all the steps and deployed the components . This created .ksh components for JCL in ../deploy/JCL and  .proc component in /deploy/

  • Export to Memory ID

    Hi All, I have a requirement in which i need to export a variable to a Fix Memory ID and then retrieve it when required. Now since i am exporting the variable to the same memoryid how will i retrieve the value of a particular variable if it is requir

  • Previous Posting Period Stock Quantity Function

    Hi experts, I have a question about getting previous posting period stock quantity.(from MCHB or MCHBH) Does anybody know if there is standart SAP function to find out this stock quantity? Or ABAP code to find out ? Thanks in advance FIRAT KAYIRAN MM

  • Javascript error OSX 10.4.11

    maybe its wrong posted, but i dont find a simular topic: The problem at html-editors there wouldnt show the editor-icons in firefox (XMTLsuite, Tiny etc.) the attributes-info of the icons tells "not in cache". second: calling my page www.kocherlebnis