I need a code to run a report a forms on 10G...

Hello!! I m 6i to 10G migration and I can not run a report... can someone send me a code example to run a report on a form in 10G?

Thank you!!

Kind regards!

IAM using Javabean in oracle 10 g tun report forms...

First, create a block with a name control and add a bean with a name
userid_bean. Click the bean field and change its width and its height
so that u can not see when you run the form.

Now use the code when you code to run the report below.

Declare
rep_url varchar2 (2000);

Start

rep_url: = ' / reports/rwservlet? report = filepath\rep1. RDF' |
«& desformat=htmlcss&destype=cache&userid=sample/sample@oracle» | '& paramform = yes;

-Write Log messages to the console of JInitiator forms. The following line must
-be disabled before running this code in any production environment.

set_custom_property ('control.userid_bean', 1, 'ADD_USERID',)
get_application_property (username) | » /'||
get_application_property (Password). » @'||
get_application_property (connect_string));

-writes the cookie

set_custom_property('control.userid_bean',1,'WRITE_USERID_COOKIE','10g');
Web.show_document (rep_url, '_blank');

end;

Tags: Oracle Development

Similar Questions

  • How I can run a reports of forms

    Oracle Forms 9i

    Hai All

    How can we run a reports of forms Pls tell the steps or give me some links


    Thanks in advance

    Srikkanth.M

    Oops... Forms 9i, you will probably need to use the run_report_object. I think that run_product was in forms 4 and 6i and out taking in charge after that. It been a long time I used something like that, sorry for the confusion.

    http://www.Oracle.com/technology/products/forms/PDF/10G/frmrepparamform.PDF

    Published by: mcharchuk on March 7, 2010 09:47

  • Run the report and form 12 c

    Hello

    As in D2k we where using ifrun.exe to run the Oracle report and form module giving a parameter, in the form of 12 c and point out how we're going to run the package.

    In the ifrun.exe target us where giving as

    C:\ORANT\BIN\ifrun60. EXE C:\ERP\ERP\ERPMODULE. FMX erp/erp@erpksy

    Sandy

    Please see the documentation.  Windows 10 is not a certified platform.  The installation program performs a check to determine if the platform you are installing on is acceptable.  Probably, he sees that you're on Win10 and exits.

    Reminder, the basic steps to install are the following (don't forget first install Windows loopback adapter if the machine doesn't have a static IP):

    1. install the JDK 8U51 + (x 64)

    2. install WLS Infrastructure 12.2.1

    3. install the forms/States 12.2.1

    4. run the repository creation utility (RCU)

    5. run the Setup Wizard (to create the domain)

    6. start the WLS Node Manager, Server Admin and WLS_FORM.  If Windows, you must use a DOS shell with administrator privileges to do this commissioning initial.  Otherwise will result in the field not be created properly.

    Guides to the system requirements and the Installation Guide is located in the library of Doc here:

    http://docs.Oracle.com/middleware/1221/formsandreports/index.html

    The matrix certification can be found here:

    http://www.Oracle.com/technetwork/middleware/Fusion-Middleware/documentation/FMW-1221certmatrix-2739738.xlsx

  • Running a report form

    Hi all

    I use this code to run a report of my form, it runs successfully:

    DECLARE 
         V_PARM PARAMLIST ; 
         
         TYPE ADT_REC_TYPE IS RECORD (V_VISIT_ID VARCHAR2(90) ,
         V_ORG_NO VARCHAR2(90)  
         ) ;
         ADT_REC ADT_REC_TYPE ; 
         TYPE ADT_TAB_TYPE IS TABLE OF ADT_REC_TYPE 
         INDEX BY BINARY_INTEGER  ; 
         ADT_TAB ADT_TAB_TYPE ; 
    BEGIN 
    :NUMBERS_BLOCK.VISIT_ID := 'AND V.VISIT_ID IN (-1';
    :NUMBERS_BLOCK.ORG_NO        := 'AND  V.ORGANIZATION_NO IN (-1' ; 
    
          GO_BLOCK('ALL_ADMITTED_PATIENT') ; 
          FIRST_RECORD; 
          LOOP 
          IF :ALL_ADMITTED_PATIENT.CHECK_PAT = 'Y'
                THEN 
            ADT_TAB(:ALL_ADMITTED_PATIENT.NUM).V_VISIT_ID := :ALL_ADMITTED_PATIENT.VISIT_ID     ; 
            ADT_TAB(:ALL_ADMITTED_PATIENT.NUM).V_ORG_NO   := :ALL_ADMITTED_PATIENT.ORGANIZATION_NO ; 
      
    
      
      :NUMBERS_BLOCK.VISIT_ID := :NUMBERS_BLOCK.VISIT_ID||','||:ALL_ADMITTED_PATIENT.VISIT_ID ;
      :NUMBERS_BLOCK.ORG_NO   := :NUMBERS_BLOCK.ORG_NO  ||','||:ALL_ADMITTED_PATIENT.ORGANIZATION_NO ;
      
      
              
     END IF ; 
    
          EXIT WHEN :SYSTEM.LAST_RECORD = 'TRUE' ; 
           NEXT_RECORD ;      
           
          END LOOP ; 
          
     :NUMBERS_BLOCK.VISIT_ID := :NUMBERS_BLOCK.VISIT_ID||')' ;
     :NUMBERS_BLOCK.ORG_NO   := :NUMBERS_BLOCK.ORG_NO  ||')' ;
          
          FOR I IN ADT_TAB.FIRST .. ADT_TAB.LAST LOOP 
              
          V_PARM := GET_PARAMETER_LIST('REPDATA');
      IF NOT ID_NULL(V_PARM) THEN
          DESTROY_PARAMETER_LIST(V_PARM);
      END IF;
      V_PARM := CREATE_PARAMETER_LIST('REPDATA');  
      
      
      Add_Parameter(v_parm,'P_VISIT_ID'          ,TEXT_PARAMETER,    :ALL_ADMITTED_PATIENT.VISIT_ID);
      Add_Parameter(v_parm,'P_LEX_VISIT_ID'          ,TEXT_PARAMETER,    :NUMBERS_BLOCK.VISIT_ID);
      Add_Parameter(v_parm,'P_ORGANIZATION_NO'   ,TEXT_PARAMETER,:ALL_ADMITTED_PATIENT.ORGANIZATION_NO);
      Add_Parameter(v_parm,'P_LEX_ORG_NO'          ,TEXT_PARAMETER,    :NUMBERS_BLOCK.ORG_NO);
      
      --Add_Parameter(v_parm,'P_ORGANIZATION_NO'   ,TEXT_PARAMETER,ADT_TAB(I).V_ORG_NO);
      
      
          END LOOP ; 
          RUN_REPORT('MRPLYLST',TO_NUMBER(:GLOBAL.LANGUAGE_ID),V_PARM ,'OCX_BLOCK.OCX');
         END ; 
    
    
    
    
    
    
    
    
    
    
    
       
       -------------------
    
    
    
    

    : NUMBERS_BLOCK. VISIT_ID has a similar condition (and in v.visit_id (23,24,545).

    : NUMBERS_BLOCK.ORG_NO is a condition as (and v.org_no in (01) for example

    and they are sent to a lexical parameter in the report.

    but when I try to run the Report Builder with params even, it runs empty?

    Why?

    I don't know that I filled the same parameters with values?

    Thank you

    Thank you, it is resolved,

    I ran the report in report designer and open the form.

    I don't know what the problem is if it happens, but I'm sure that was the problem.

    Thank you

  • "a regular basis" to run a report form 11g

    I'm migration 6i c/s to 11g web app.

    I will have some difficulty in understanding how reports work now:

    In 6i, I used to code calls with run_report_object or even run_product built-ins, and the report went straight to the user's screen or printer.

    (Now I have seen that you can not send it directly to the printer, but we can live with that).

    Now I use the solutions I've read discussions like this:

    https://community.Oracle.com/thread/2184172

    My work is as follows:

    PROCEDURE Pf_Run_Report_Object (p_report_id REPORT_OBJECT) IS
    
      l_report_server varchar2(100);
      l_rep_out   VARCHAR2(100); 
      l_report_job_id VARCHAR2(100);
      l_report_status varchar2(100);
      l_wait date := sysdate + (5/1440);
      Begin
       tool_env.getvar('REPORTS_SERVER_NAME', l_report_server);
       IF l_report_server IS NULL THEN
        Raise Form_Trigger_Failure;
       END IF;
    
    
       Set_report_object_property(p_report_id, REPORT_SERVER, l_report_server);
    
      Set_Application_Property(CURSOR_STYLE, 'BUSY');
      l_rep_out := RUN_REPORT_OBJECT(p_report_id); 
    
      l_report_job_id := Substr(l_rep_out, instr(l_rep_out,'_',-1)+1);
    
      l_report_status := REPORT_OBJECT_STATUS(l_rep_out);
    
      WHILE sysdate < l_wait AND l_report_status IN ('RUNNING','OPENING_REPORT','ENQUEUED') 
      LOOP
           l_report_status := REPORT_OBJECT_STATUS(l_rep_out);
      END LOOP;
    
    
      IF l_report_status = 'FINISHED' THEN
      WEB.SHOW_DOCUMENT('/reports/rwservlet/getjobid='||l_report_job_id||'?server='|| l_report_server,'_blank');
      ELSE
      MESSAGE('Report error: '||l_report_status);
      END IF;
    
      Set_Application_Property(CURSOR_STYLE, 'DEFAULT');
    
      End Pf_Run_Report_Object;
    

    All hardcoded that names of statutes and the property url... seem like a bug ticking. Also the loop 5 min... Don't like.

    It works... but it seems so crappy that I can't believe this is the usual way to simply run a report:

    How do you call a report in form 11g?

    I would recommend that you start here:

    http://www.Oracle.com/technetwork/Developer-Tools/Forms/documentation/integrating-forms11g-and-reports11g-1905204.PDF

    Here's what happens:

    1. your forms application requests that a report (rdf, rep, etc.) is executed. (Running is not identical to present)

    2. once the report is run and the data has been retrieved, the output is stored on the file system of the server in the format that you define (html, pdf, etc.)

    3. your Forms application can now retrieve the complete report when desired using the JobID reports.  WEB. SHOW_DOCUMENT is most often used, but other extraction methods are possible.

    As to why you coded a timer in the code, I can't speak for it, but you don't need.  Yet once again, refer to the doc above and it will explain how to launch and retrieve a report.

  • Run the report with parameters when, select the Radio button

    HelloW Guys

    I run my report with the report parameter form now, I want to when I select a radio button and then check if my only the list value = 1 then run A report if my only the list value = 2 then launch report B

    Report A and B contain the same parameter

    What can I do?

    I am writing this trigger button
    DECLARE+.
    al_button NUMBER; +
    pl_id PARAMLIST; +
    pl_id2 PARAMLIST; +
    START to+.
    IF: type = 'A' THEN+.
    IF: RepType = "1" THEN+.
    * pl_id: = Get_parameter_list ('repPara'); -create a parameter list * +.

    IF not Id_null (pl_id) THEN+.
    Destroy_parameter_list (pl_id); +
    END IF; +

    pl_id: = Create_parameter_list ('repPara'); +

    Add_parameter(pl_id,'PARAMFORM',text_parameter,'NO'); +

    * Add_parameter(pl_id,'style_from',text_parameter,:style_from); -passing style ano parameter * +.

    * Add_parameter(pl_id,'style_to',text_parameter,:style_to); -passing style not as parameter * +.

    * Add_parameter(pl_id,'date_from',text_parameter,:date_from); -passing date as parameter * +.

    * Add_parameter(pl_id,'date_to',text_parameter,:date_to); -by the way that date as parameter * +.

    * Add_parameter(pl_id,'category',text_parameter,:category); -passing as the parameter category * +.



    Run_product (rapports,'E:\inventory\Dispatch\d_style_wise_dispatch_Stitching_report.rdf ',+)
    asynchronous, runtime, the file system, pl_id, NULL); +
    ELSIF: Reptype = "2" THEN+.
    pl_id2: = Create_parameter_list ('repPara2'); +

    Add_parameter(pl_id2,'PARAMFORM',text_parameter,'NO'); +

    * Add_parameter(pl_id2,'style_from',text_parameter,:style_from); -passing style not as parameter * +.

    * Add_parameter(pl_id2,'style_to',text_parameter,:style_to); -passing style not as parameter * +.

    * Add_parameter(pl_id2,'date_from',text_parameter,:date_from); -passing date as parameter * +.

    * Add_parameter(pl_id2,'date_to',text_parameter,:date_to); -by the way that date as parameter * +.

    * Add_parameter(pl_id2,'category',text_parameter,:category); -passing as the parameter category * +.


    Run_product (rapports,'E:\inventory\Dispatch\d_style_wise_dispatch_Delivery_report.rdf ',+)
    asynchronous, runtime, the file system, pl_id, NULL); +
    END IF; +
    END IF; +
    END; +

    Need help


    Concerning


    Wasim Ismail

    Dear Shahzab,

    As the parameters except a report type are the same, you can accomplish this task by comparing the type of report just before Run_product.

    You need to re - write the code as below:

    DECLARE
    al_button NUMBER;
    pl_id PARAMLIST;

    BEGIN
    IF: type = 'A' THEN
    IF: RepType = "1" THEN
    * pl_id: = Get_parameter_list ('repPara'); -create a parameter list *.

    IF this is Id_null (pl_id) THEN
    Destroy_parameter_list (pl_id);
    END IF;

    pl_id: = Create_parameter_list ('repPara');

    Add_parameter (pl_id, 'PARAMFORM', text_parameter, 'NO');
    Add_parameter(pl_id,'style_from',text_parameter,:style_from);
    Add_parameter(pl_id,'style_to',text_parameter,:style_to);
    Add_parameter(pl_id,'date_from',text_parameter,:date_from);
    Add_parameter(pl_id,'date_to',text_parameter,:date_to);
    Add_parameter(pl_id,'category',text_parameter,:Category);

    IF: type = 'A' THEN
    IF: RepType = "1" THEN
    Run_product (rapports,'E:\inventory\Dispatch\d_style_wise_dispatch_Stitching_report.rdf ',)
    asynchronous, NULL to run, the file system, pl_id,);
    ELSIF: Reptype = '2'
    Run_product (rapports,'E:\inventory\Dispatch\d_style_wise_dispatch_Delivery_report.rdf ',)
    asynchronous, NULL to run, the file system, pl_id,);
    END IF;
    END IF;
    END;

    Concerning
    Fassi Fihri

  • FRM-41214: cannot run the report during the call to the reports

    Hi all,

    I work with Forms 10g on Windows 7 (local working with OC4j), I have a form with a button calling a report, it's the code for the button:

    declare

    Repid REPORT_OBJECT;

    v_rep VARCHAR2 (100);

    rep_status VARCHAR2 (20);

    BEGIN

    Rep: = find_report_object ('EMPS_BY_DEPTS');

    SET_REPORT_OBJECT_PROPERTY (REPID, REPORT_EXECUTION_MODE, batch);

    SET_REPORT_OBJECT_PROPERTY (REPID, REPORT_COMM_MODE, SYNCHRONOUS);

    SET_REPORT_OBJECT_PROPERTY (REPID, REPORT_DESFORMAT, 'pdf');

    SET_REPORT_OBJECT_PROPERTY (REPID, REPORT_DESTYPE, cache);

    SET_REPORT_OBJECT_PROPERTY (REPID, REPORT_SERVER, 'repetat');

    SET_REPORT_OBJECT_PROPERTY (REPID, REPORT_OTHER, 'paramform = no');

    v_rep: = RUN_REPORT_OBJECT (repid);

    rep_status: = REPORT_OBJECT_STATUS (v_rep); 

    While rep_status in ('MARKET', 'OPENING_REPORT', 'PENDING')

    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 = repetat","_blank"); "

    ON THE OTHER

    message ("error when running report");

    END IF;

    END;


    I create a report object in the browser of the object with the name ""EMPS_BY_DEPTS "with properties " filename = emps_by_depts.rdf.

    I also have a server with the command server = repetat wserver report

    When I press the button to call the report I get this famous 41214 FRM: cannot run the report.

    I tried running the report with rwservlet: http://acer-pc:8889/reports/rwservlet?report=emps_by_depts.rdf & userid=hr/hr@orcl & desformat = pdf & destype = hide & expiry =...

    and it works very well.

    Any idea and thank you


    I do in this case,

    1 - i run report with parameterform = YES (Note: your report is not a form of parameter), so I can see explanation real error report.

    2 - showjobs of report server options

    We use the 11g r2, for 11g r2 reports this link http://: 9002/reports/rwservlet/showjobs? = RptSvr__asinst_1 server , so I can't see error detail.

    10g should be that this option absolutely. but I don't know.

    These can help you.

    Best regards.

  • Cannot run the report

    DB and dev 10grel2, xp sp2
    Hi all
    IAM trying to run the report in the form with a button generator
    I used this command to start my server: Server rwserver = "MyServer" auto = Yes and it works well.

    I created a report object (report5) on the form that contains the button to run the report.
    When I click on the browser reports node to create the report object, I assigned 'myrep' as the file name of the report, not based on a block of data and then created the report of the scott schema dnames.

    then closed the Report Builder without saving it in another format.

    then I wrote this code in the when button pressed the shutter:
     
    
    declare 
         rp report_object ;
         v varchar2(90) ; 
    begin 
         rp := find_report_object('report5') ; 
         v := run_report_object(rp) ; 
    end ; 
    -nothing wrong with the code, then I ran the form, you press the button to find out:
    FRM-41214 cannot run the report.
    When I looked at the online help, it tells me nothing but
    Cause: The report server could not run the specified report.
    Action: Check the report server and make sure it is running.
    and I checked and it runs and upward.
    What should I do?
    Thanks in advance

    Check my code and try this code in you touch. I write it given your situation and information provided. You can paste directly into your trigger button.

    DECLARE
    
         v_repid REPORT_OBJECT;
         v_rep VARCHAR2(100);
         v_rep_status VARCHAR2(100);
         v_param VARCHAR2(200) := NULL;
         v_valor VARCHAR2(200);
         v_url VARCHAR2(2000);
         v_repserver varchar2(20) := 'myserver'; -- YOUR REPORT SERVER NAME
    
         v_report varchar2(100) := 'E:\myrep.jsp'; -- YOUR REPORT PATH AND NAME
         /* IF .JSP IS NOT WORK CONVERT IT TO .REP AND TRY */
         v_PARAMETRO varchar2(100) := '';
    
    BEGIN
    
         v_repid := FIND_REPORT_OBJECT('report5'); -- report is an element from object navigator report
         SET_REPORT_OBJECT_PROPERTY(v_repid, REPORT_FILENAME, v_report);
         SET_REPORT_OBJECT_PROPERTY(v_repid, REPORT_EXECUTION_MODE, BATCH);
         SET_REPORT_OBJECT_PROPERTY(v_repid, REPORT_COMM_MODE, SYNCHRONOUS);
         SET_REPORT_OBJECT_PROPERTY(v_repid, REPORT_DESTYPE, cache);
         SET_REPORT_OBJECT_PROPERTY(v_repid, REPORT_DESFORMAT, 'pdf' );
         SET_REPORT_OBJECT_PROPERTY(v_repid, REPORT_DESNAME, v_report);
         SET_REPORT_OBJECT_PROPERTY(v_repid, REPORT_SERVER, v_repserver);
         SET_REPORT_OBJECT_PROPERTY(v_repid, REPORT_OTHER, 'paramform=no '||v_PARAMETRO);
         v_rep := RUN_REPORT_OBJECT(v_repid);
         v_rep_status := REPORT_OBJECT_STATUS(v_rep);
         WHILE v_rep_status IN ('RUNNING','OPENING_REPORT','ENQUEUED') LOOP
         v_rep_status := REPORT_OBJECT_STATUS(v_rep);
         END LOOP;
         IF v_rep_status = 'FINISHED' THEN
         message(v_rep);
         message(v_rep);
         WEB.SHOW_DOCUMENT(v_url||'/reports/rwservlet/getjobid'||
         SUBSTR(v_rep, INSTR(v_rep,'_', -1)+1)||'?'||'server='||v_repserver, '_blank');
         END IF;
    
    END;
    

    So let me know what you get...

    Ed: I've updated my blog link. You can check the first time, if necessary.

    Published by: HamidHelal on January 21, 2013 12:43 AM

  • Run the report in a specific folder

    Would it not be possible to add the ability to run the virtual computer report on a specific folder in vCenter?  Our vCenter has folders separated for various departments within our Organization, and it would be useful to be able to run the report on each of these record independently.  I checked through similar scripts in the repository but not found anywhere where this has been done.  Thank you!

    Hello

    No, currently how the script is written, its pretty hard to filter on a file especially vCenter. The script currently travels all ESX(I) hosts in your environment, and then from there, it crosses the VMS in each host out information relavent. It is not impossible, but it requires a bit of code to support change.

    If you are looking for an example of list of virtual machines by a particular VM folder, there is a script in the repo called "listVMByFolder.pl" that can give you a starting point.

    Good luck

  • Reports of fin - error when you try to run a report via the workspace - 11.1.1.3

    I can run the report using the client. But when any user tries and it works via the workspace we get:

    <? XML version = "1.0" encoding = "UTF-8"? >
    < BpmResponse action = "" type = "error" > "
    < code > 0 </postcode >
    < desc >; nested exception is:
    java.rmi.UnmarshalException: error demarshalling return; nested exception is:
    java.io.InvalidClassException: com.hyperion.reporting.properties.PovProperties; incompatible local class: stream classdesc serialVersionUID = 2904510004932374854, local class serialVersionUID =-1387329505542936014 < / desc >
    < / BpmResponse >

    Did you reinstall activities or apply patches recently? I saw this when I have patch a multi server environment where the report server had a patch level, but the en web had the old patch level. I inspect the sizes and dates of your financial report on different server jar files to make sure they match.

    Nick

  • Cannot run the report please help

    Here is my code behind the button to run the report.

    declare
    Repid REPORT_OBJECT;
    v_rep VARCHAR2 (100);
    rep_status VARCHAR2 (50);
    BEGIN
    / * If other changes made by najim * /.
    IF: TXTFDATE is null THEN
    message ("Please enter Date of THE '");
    message ("Please enter Date of THE '");
    return;
    ELSIF: TXTTDATE IS NULL THEN
    message ("Please select up HERE '");
    message ("Please select up HERE '");
    return;
    ON THE OTHER
    Rep: = find_report_object ('HISTORY_REPORT');
    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, 'pdf');
    SET_REPORT_OBJECT_PROPERTY (REPID, REPORT_SERVER, 'repserver90');
    SET_REPORT_OBJECT_PROPERTY (REPID, REPORT_OTHER, 'F_DATE =' |: TXTFDATE |) ' V_DATE =' | : TXTTDATE | "The PHASE =' | : TXTPHASE: ' paramform = no ");"
    v_rep: = RUN_REPORT_OBJECT (repid);
    rep_status: = REPORT_OBJECT_STATUS (v_rep);
    While rep_status in ('MARKET', 'OPENING_REPORT', 'PENDING')
    LOOP
    rep_status: = report_object_status (v_rep);
    END LOOP;
    IF rep_status = "FINISHED" THEN
    / * Display the report in the browser * /.
    WEB. SHOW_DOCUMENT ('http://172.29.3.202/reports/rwservlet/getjobid': substr (v_rep, InStr(v_rep,'_',-1) + 1) |'?) "|' server = repserver90","_blank"); "
    ON THE OTHER
    message ("error when running report");
    END IF;
    END IF;
    END;


    When I press the button, it gives an error message cannot run the report.

    Open the report server console and check the error here. : http://application-tier server: port/reports/rwservlet/showjobs? Server = REPORTSSERVER

    Published by: Andreas Weiden on 23.07.2011 09:13

  • Run the report to PL/SQL with the branch to another page

    I have an application which, at various times, I run a PL/SQL procedure to perform an action, and then we must run a report while also navigating away from the current page. The actions are performed on a button click.

    I tried several methods, but for the life of me cannot get the system to do the two things (ie. run the report and the direction to another page). I tried to put in page 0 (to be executed after the treatment on the click of a button) a branch with a request line to print the report, followed by a branch to the other page (also to run after the treatment on the button click) - and only the branch page 0 runs in fact. Also tried a branch to the other page only, with the print in the request parameter request - but only runs the report, do not create a branch to the other page.

    I also tried to put the call to run the report in the PL/SQL code, using utl_http.start_request (url), but that came with a "Bad Request" error. Also tried to use the owa_util.redirect_url call, but also no chance.

    I'm pulling my hair out at this time, especially because I am under pressure to get the system in very short time.

    Any suggestion would be appreciated.

    You can run queries report of their URL (f? p = & APP_ID.: 0: & SESSION.: PRINT_REPORT =)

    So one approach would be to
    The button click, call a JS function which

  • 1 use the Ondemand/recall process in order to perform the processing workflow (file selection box)
  • 2 open the report in a popup (from your IR page)
  • 3 redirect leaves the IR page to another page?
    ------
    Another approach:
  • 1. IR report submits the page
  • 2. in the PLSQL block, you do the treatment
  • 3. the branch redirects to a URL that would point to the report URL.
    OR
  • 3. do you have a JS onload which runs only when demand is demand for BUTTON and opens a page that points to the report.
    ------

    Still another way is to use htp.p in PLSQL block which made the treatment of workflow
    So your code PLSQL

    BEGIN
      --Do the workflow processing here
      --End workflow processing
      htp.p('');
    END;
    
  • How to check the code of the generated report

    Hi all

    I need to change a standard module of PA report. The name of the report is "people's Republic of CHINA: distribute its use and miscellaneous charges.
    The method executable is GENERATED. The name of the executable file is PASDUC.
    Please let me know how to check the code of the present report and in what way I can locate the report.

    Kind regards
    Mahi.

    Thanks Sandeep, appreciate your words :)

    Kind regards
    Hussein

  • code to run a process for a range of dates, ignoring Sundays and holidays

    I have a proc by name (P_NAME, P_BIZDATE) INS_INVENTORY (P_NAME IS OF TYPE VARCHAR2, P_BIZDATE IS PRESENT). Actuallythis proc runs every day in our Planner. I had to make changes to this procedure. Now, I need to run this proc for P_BIZDATE taking the dates of 1 January 09 to 31 December 09. We also have a table by its PT_HOLIDAYS name, which consists of the list of holidays from 1 January 2009 to 31 December 2009. Now I need a code or a process through which I can run this proc 1 January 09 to 31 December 09 and also this proc should not be run 'SUNDAY' and public holidays as specified in the PT_HOLIDAYS table

    CREATE TABLE PT_HOLIDAYS
    (
    HOLIDAY_DATE DATE NOT NULL,
    DISPLAY_NAME VARCHAR2 (35 BYTE) NOT NULL,
    )

    Insert into PT_HOLIDAYS
    (HOLIDAY_DATE, DISPLAY_NAME)
    Values
    (TO_DATE (1 January 2009 00:00:00 ',' DD/MM/YYYY HH24:MI:SS'), "New Year Day");
    Insert into PT_HOLIDAYS
    (HOLIDAY_DATE, DISPLAY_NAME)
    Values
    (TO_DATE (25 May 2009 00:00:00 "," MM/DD/YYYY HH24:MI:SS'), "Memorial Day");
    Insert into PT_HOLIDAYS
    (HOLIDAY_DATE, DISPLAY_NAME)
    Values
    (TO_DATE (4 July 2009 00:00:00 ',' DD/MM/YYYY HH24:MI:SS'), 'July 4');
    Insert into PT_HOLIDAYS
    (HOLIDAY_DATE, DISPLAY_NAME)
    Values
    (TO_DATE (7 September 2009 00:00:00 "," MM/DD/YYYY HH24:MI:SS'), 'Labor Day');
    Insert into PT_HOLIDAYS
    (HOLIDAY_DATE, DISPLAY_NAME)
    Values
    (TO_DATE (26 November 2009 00:00:00 ',' DD/MM/YYYY HH24:MI:SS'), 'Thanks Giving Day');
    Insert into PT_HOLIDAYS
    (HOLIDAY_DATE, DISPLAY_NAME)
    Values
    (TO_DATE (26 December 2009 00:00:00 "," MM/DD/YYYY HH24:MI:SS'), 'Christmas');
    COMMIT;


    Please advice

    Like this?

    declare
    start_date date := to_date('01/01/2009','MM/DD/YYYY');
    end_date date :=to_date('12/31/2009','MM/DD/YYYY');
    cur_date date;
    total_run number := (end_date - start_date)+1;
    holiday number := 0;
    begin
    for i in 1..total_run loop
         cur_date := start_date + (i-1);
              begin
                   select 1 into holiday from PT_HOLIDAYS where HOLIDAY_DATE = cur_date;
              exception
                   when no_data_found then
                   holiday:=0;
              end;
         if to_char(cur_date,'DY') != 'SUN' and holiday != 1 then
              dbms_output.put_line(cur_date||'-'||to_char(cur_date,'DY'));
              --INS_INVENTORY( , cur_date)
         end if;
         end loop;
    end;
    /
    

    Kind regards
    Prazy

    Published by: Prazy on March 29, 2010 12:39

  • Problem running the report with the Web Service and BI Publisher

    Hello

    In fact, I'm trying to run a report of Bi Publisher via the Web Service.
    I use the following documents:
    -http://download.oracle.com/docs/cd/E10415_01/doc/bi.1013/e10416/bip_webservice_101331.htm
    -"How to integrate Oracle BI Publisher via Web Services in the form of Oracke.

    Everything works fine. But when I try to copy the file on the local computer is 0 length. I use the method of "getReportBytes".
    Here's the code I tried with:

    String userName = "Administrator";
    String password = "Administrator";

    System.out.println ("calling" + myPort.getEndpoint ());
    System.out.println (myPort.validateLogin (username, Password));

    ReportRequest repReq = new ReportRequest();
    RepRes ReportResponse = new ReportResponse();

    repReq.setAttributeFormat ("pdf");
    repReq.setAttributeLocale("en-US");
    repReq.setAttributeTemplate ("sales world");
    repReq.setReportAbsolutePath ("/ Sales Manager/World Sales/World Sales.xdo");

    repRes = myPort.runReport (repReq, userName, passWord);
    System.out.println (repRes.getReportContentType ());

    Byte [] binaryBytes = repRes.getReportBytes ();
    OutputStream out = new FileOutputStream ("D:
    out.pdf");
    out. Write (binaryBytes);
    out. Close();
    System.out.println ("success for performance report');

    Thanks in advance.

    Hello

    I assume you are using 10.1.3.4. Otherwise, my index is not relevant to you...

    There is a new parameter in the web service API to set the size of the segment. HéLas is by default not so, the behavior is as in versions (not size segment... the entire document at once). If you set the size of segment-1, you should get your document. So, try adding
    repRequest.setSizeOfDataChunkDownload(-1);

    concerning
    Rainer

Maybe you are looking for