call report form on application server oracle

Hello

I just migrated my suite developer 10 g...
now, I want to call a report of an oracle form, what are the code required

Help, please

Hello

try something like that.

DECLARE
  rep REPORT_OBJECT;

  vcJobId VARCHAR2(100);
  vcUrl VARCHAR2(2000);
  vcServer VARCHAR2(200) := 'repserver';--add report_server_name here
pl_id paramlist;
BEGIN
pl_id := Get_parameter_List('tmp'); 

IF NOT Id_Null(pl_id) THEN
Destroy_parameter_List( pl_id );
END IF;
pl_id := Create_parameter_List('tmp');
add_parameter(pl_id,'P_parameter',text_parameter,to_char(:block.item_name));

  rep:=FIND_REPORT_OBJECT('REPORT6');
  SET_REPORT_OBJECT_PROPERTY(rep, REPORT_FILENAME, 'E:\report_name.rdf');
  SET_REPORT_OBJECT_PROPERTY(rep, REPORT_DESTYPE, CACHE);
  SET_REPORT_OBJECT_PROPERTY(rep, REPORT_DESFORMAT, 'PDF');
  SET_REPORT_OBJECT_PROPERTY(rep, REPORT_SERVER,vcServer);
  SET_REPORT_OBJECT_PROPERTY(rep, REPORT_OTHER ,'p_parameter='|| :block.item_name);

  vcJobId := RUN_REPORT_OBJECT(rep);
  vcJobId := SUBSTR(vcJobId, LENGTH(vcServer) + 2, LENGTH(vcJobId));
  vcUrl:= 'http://machine_name:port/reports/rwservlet/getjobid' || vcJobId || '?server=' || vcServer;
  WEB.SHOW_DOCUMENT(vcUrl, '_blank');
END;

and you can also try this code too.

DECLARE
repid REPORT_OBJECT;
v_rep VARCHAR2(100);
rep_status VARCHAR2(20);
plid ParamList;
vParamValue number;
BEGIN

plid := Get_parameter_List('tmp'); 

IF NOT Id_Null(plid) THEN
Destroy_parameter_List( plid );
END IF;
plid := Create_parameter_List('tmp');
add_parameter(plid,'p_parameter',text_parameter,to_char(:block.item));

Add_parameter(plid, 'PARAMFORM', TEXT_parameter, 'NO');

repid := FIND_REPORT_OBJECT('REPORT6');
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,SYNCHRONOUS);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,cache);

SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'PDF');

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

v_rep := RUN_REPORT_OBJECT(repid,plid);
rep_status := REPORT_OBJECT_STATUS(v_rep); 

WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED')
LOOP
rep_status := report_object_status(v_rep);
END LOOP; 

/*Display report in the browser*/
WEB.SHOW_DOCUMENT('http://machine_name:port/reports/rwservlet/getjobid'||substr(v_rep,instr(v_rep,'_',-1)+1)||'?
'||'server=report_server_name&P_parameter='||:block.item||
'¶mform=no'); 

END; 

Sarah

Tags: Oracle Development

Similar Questions

  • call report forms (with or without parameters) oracle apex

    Hello

    I want to know if I can call report forms (with or without parameters) oracle apex?

    Thanks in advance

    Try to look at this blog: Roels Blog: integration of forms and the APEX: APEX calling forms

    Thank you

    Tony Miller
    Software LuvMuffin
    Ruckersville, WILL

  • How to identify the server name of the report and start reporting on GR 11, 2 server to call reports forms

    Developer Environment:

    Windows 7 64 BIT

    Oracle Fusion Middleware 11.1.2.2

    WLS 10.3.6

    All reports run correctly from the report generator.

    I tried the following report server name, and do not know, I use a wrong name of report server, if the server not property began or if this is a problem in configuration of the environment.

    Name of report server:

    Rep_computer_name: Rep_xxxT5600.

    (1) as a result URL will return the error:

    http://localhost:7001 / reports/rwservlet/showenv? Server = Rep_xxxT5600

    Returns the following error message:

    REP-51002: link to rep_xxxt5600 for report server has failed.

    (2) from the report server in a DOS window

    C:\Oracle\Middleware\asinst_1\config > rwserver Server = Rep_xxxt5600

    Returns the following error:

    REP - 50125:java.lang.NullPointerExcpetion

    Any help or advice would be very happy.

    I apologize in advance - I posted this in the forum reports, but don't get all the answers.  This information is needed for call forms reports, so I'm confident that someone from the Forum forms can help guide me.

    Thanks yo in advance.

    Mika

    I was able to solve the problem by the following text:

    1. Implement the steps found in how you create and start up A Standalone Server reports in 11g R1 & R2 (Doc ID 961174.1)
    2. To solve the REP-52262: output diagnostic is disabled.

    Change $DOMAIN_HOME/config/fmwconfig/servers/WLS_REPORTS/applications/reports_11.1.2/configuration/rwservlet.properties


    #FROM

    Yes

    #TO

    Yes

    L2

  • call report form 12 c 12

    call report 12 c of form 12 c by RUN_REPORT_OBJECT (the output format is pdf), but get error REP-56133 - an attempt to write to the folder failed due to a lack of permissions , can someone give me some advice. Thank you!

    the solution is:

    1. add more to rwserver.conf

    c:\Temp

    2 mkdir c:\temp in the report server

    3 change the ownership of the object of the report form with the name of Destination report to c:\temp\xxx.pdf

  • application server oracle migration to a new server with SSO

    Application server: 10.1
    repository database: 9.2.0.6

    Old OS: Tru 64
    New operating system: Solaris

    We just want to migrate to the new server. We're not modernize our versions of oracle. We continue to get username / password is wrong when we try to use single sign on with the new repository. When contact us the Oracle support we work around the race. They are simple and there is no documentary research he actually did this or knows how to do a migration.

    Is someone did a migration of the repository with single sign on? What metalink document did you use?
    Is it possible to simply export/import data?

    you might be falling into this scenario.
    the version of your database is the same, you have found the similar error stack, on executing the script of ssomig.bat even.

    Please see this note on Metalink2: Doc ID: 430523.1

    '' Cause. ''

    The 10.1.2.02 standards body. ssomig script uses the import/export utilities in its $ORACLE_HOME, 10.1.x. The SSOMIG script assumes that the metadata repository database is a version that uses the same current version of SSO import/export utility. In your case, this is not true.

    This causes a problem when the source repository of metadata is 9.2 versions. In a database import/export utility perspective, this is an unsupported configuration, a newer version of export cannot be enforced against an earlier version of the database. An earlier version of export can only be run on a later version of the database. It is documented in the Guide of the database utilities.

    Solution
    To implement the solution, please perform the following steps:

    On the source server
    1. run the House against the 9.2.x 101202 fight database catexp.sql.
    2 copy files/directories SSO and Perl 101202 House Home 9207
    3. run the ssomig-export of 9207 House
    4 copy the ssomig.dmp resulting and the ssoconf.log to the SSO target
    5. run ssomig - import.
    "

    ******************************

    If that does not solve your problem, then look in this note.
    DOC - ID: 372328.1

    AMN

  • PDF reports and forms11g, Weblogic, call report form, parameters

    Hi all.
    I had trouble putting in reports 11 g in pdf format. This is how I solve it.
    I hope to help someone of you and also anyoe can correct me if Im wrong.

    1. I installed a configured server weblogic 10.3.3, also of forms, reports, portal, discoverer 11.1.1.3.0 and database 11.2

    2. I have recompiled my forms and reports 10 gr 2 on 11 g, also the libraries of the pll.

    3. that's what I call the report of my form, I add settings to a list of settings called PL, and then invoke the prucedure rp2rro located in the library of rp2rrp.pl:

    PL: = create_parameter_list (TDATA);
    add_parameter (PL, 'PARAMFORM', TEXT_PARAMETER, 'NO');
    add_parameter (PL, 'ORIENTATION', TEXT_PARAMETER, 'PORTRAIT');
    add_parameter(PL,'EMPRESA',TEXT_PARAMETER,:global.Company);
    add_parameter(PL,'NB_EMPRESA',TEXT_PARAMETER,:global.CompanyName);
    add_parameter (PL, 'DESFORMAT', TEXT_PARAMETER,: CG$ CTRL.) DESFORMAT);
    rp2rro. SETREPORTSSERVER(:GLOBAL.) REPORTSERVER);
    add_parameter (PL, 'SESSION', TEXT_PARAMETER, to_char (SESION));
    Add_Parameter (pl, 'DESTYPE', TEXT_PARAMETER, 'SCREEN');
    rp2rro.rp2rro_run_product (REPORTS,: CG$ CTRL.) REPORT_TYPE, SYNCHRONOUS, DURATION, FILESYSTEM, PL, NULL);
    destroy_parameter_list (pl);

    4. when pr2rro Gets a list of parameters (PL) found no Desformat setting that I sent the form. so, I change the library of pr2rro.pll. It's the area of the revised code:
    (just added the var number 'Desfn' that he get_parameter_attr() above.)

    PACKAGE rp2rro IS BODY
    / * Package variables * /.

    rp2rroDesformat varchar2 (30);
    rp2rroDesname varchar2 (200);
    rp2rroDestype varchar2 (30);
    rp2rroReportOther varchar2 (2000): = ";
    number of rp2rroComm_mode: synchronous =;
    rp2rroReportServer varchar2 (100);
    rp2rroVirtualDir varchar2 (100);
    rp2rroReportsInterface varchar2 (30);

    / Thisline by ingenio * /.
    Number of Desfn;


    5. a couple of lines above, you can find this:
    (here I added get_parameter_attr (mparamlist_id, 'DESFORMAT', Desfn, rp2rroDesformat); for re-branded, the value of the parameter called Desformat in var rp2rroDesformat)

    PROCEDURE rp2rro_run_product (product NUMBER, reportFile VARCHAR2, commMode NUMBER, engine NUMBER, fileLocation NUMBER, mparamlist_id, ParamList, display VARCHAR2) IS

    BEGIN
    / * Handle calls only reports * /.

    / Thisline by ingenio * /.
    get_parameter_attr (mparamlist_id, 'DESFORMAT', Desfn, rp2rroDesformat);

    IF product = REPORTS THEN
    Handle_rp2rro_run_product (product, reportFile, commMode, engine, fileLocation, mparamlist_id);
    END IF;
    END;


    Sound now works very well with PDF, RTF, HTML, delimited formats, not with EXCEL (spreadsheet) Im working in this.
    I accept any help.
    Thanlks

    Published by: Ingenio on November 29, 2011 14:44

    I solved my problem of edition of the library of rp2rro.pll, I debugged the library, and I found the format sent by forms was missing, so I catch and place it directly:
    GET_PARAMETER_ATTR (mparamlist_id, 'DESFORMAT', vnumb, vvalue);
    setDesformat (vvalue);

  • the call report form region

    Hello

    I have a region of report which lists the data of revenue.  First column is an 'Edit' button which, to the click, presents the edit form.  Similarly, I would like to have a button, which, to the click, should give this reception report.  Please let me know how to achieve this.  When I click, it must pass the number of receipt as a parameter so that the report shows that this special reception.

    Thank you

    -Anand

    anand_gp wrote:

    Hope I am able to put the better question...

    Not really. You have added any of the requested information.

    Here's the form screen that accepts input of receipts.  What I need to know, like the first box that is for the record "Edit", I expect a single key, which takes me to that particular record report (image following scree).

    Why are you describing that as a' form '? The area shown in the image is clearly an interactive report region. Do not use standard Oracle APEX terminology makes it very difficult to understand your problem. Perhaps this interactive report was created as a form on a Table by report using the form wizard. If so, refer to him as such. The screen 'form' in these cases will be universally understood to be the form page, not the page of report.

    To add a link to an interactive report, create a link to the column that passes the key value of the row of interactive report page of report received.

  • Call report bi adf application Publisher

    Hi all
    I'm looking at a method that allow me to run a report created by bi publisher of my 'integrating BI Publisher' stand-alone application with ADF 11 g ADF
    I found a good post on this point http://husaindalal.blogspot.com/2009/11/integrating-bi-publisher-standalone.html
    but this example need some changes such as sending the report, easier configurations parameter
    can someone help me on this point?, additional resources, the source code?

    Try to use the ideas in this white paper:

    http://www.Oracle.com/technetwork/middleware/bi-Publisher/ADF-BIP-UCM-integration-179699.PDF

    concerning

    Jorge
    p.s. Please mark this reply as 'Useful' or 'proper' accordingly. Thank you!

  • Call reports forms 6i

    Hello

    I use forms 6i and reports 6i. I'm opening application forms using Run_report_object on When_Button_press relaxation reports. The problem is that whenever I click on the button name to username/password window will appear. I searched google & forum but could not get an answer.

    Any help in this regard.

    Thank you
    Sanna

    The you probably have a problem with the passwords case-sensitive. Try a passowrd uppercase to check, and perhaps have a look at this thread Re: forms through OC4J fail with an error "login/pwd incorrect' current of execution

  • OC4J & Oracle Application Server.when which use? relationship between?

    In regards to Java EE platforms, I'm used to working with Sun, Glassfish platforms and Servlet as Tomcat containers.

    However, I need some straightening with the application servers Oracle... at least the three things that I called an... application server that is:

    • Weblogic server
    • Oracle Application Server
    • OC4J.

    I assumed the main specific questions, I have this topic are:

    (1) are all Java application servers?

    (2) what is the division of labour between all of them? [they all work like servlet containers?]  [or JNDI, etc...?] Or completely overlap their functions... or just partially?

    (3) are each one interchangeable [by that I mean: is only used at the time, they work in a hierarchy - for example, if someone wants to use the Oracle application server can use by itself or must they first OC4J?]


    I have much more difficulty in finding answers to well known topics, [as I am assuming that the use of application servers is]; at least, a much more difficult that I have do to find how to customize the code that I need and other steps down the line.
    I have read a large part of the documentation for these, but many blurs the line between the uses of OC4J and OAS, so what hole in the functionality of the OAS brings WebLogic in the image.


    Thus, any help at all that someone can provide would be much appreciated.

    Thank you!

    1. the EM console is a Web application designed to manage the instance and you are allowed to create many OC4J containers according to the needs, think this OC4J as a case of Tomcat, which will have as much FMV to the need (something that still has no BCI).

    2 branch oracle BEA and Weblogic became to be the OAS Java container and they decied to change the name of OAS BCI and they will keep some OAS products and replace other BEA for use in BCI.

    Greetings

  • WebLogic and Oracle Application Server

    Probably a stupid question, but what is the difference between WebLogic and Oracle Application Server or are they the same thing?

    Hello

    Please find below the link... It can erase some of your doubts: -.

    http://orachat.com/Oracle-application-server-Oracle-WebLogic-Server/

    Thank you
    JD

  • Setting up Oracle Application Server (FMW) - Weblogic Server on RHEL5

    Dear friends

    I want to install the application server Oracle 11 GR 1 material (10.3 FMW) - Weblogic Server on RHEL5. How to do that, can someone give me the steps or suggest the facility.
    It really works on RHEL5?

    Concerning

    Peppy

    Hi Julie,.

    Please download: 11 GR 1 material Oracle WebLogic Server (10.3.2) - Package Installer from the link below: http://www.oracle.com/technology/software/products/ias/htdocs/wls_main.html

    Once you click on * 'Accept' * radio button then after * "Sign in" * you will be able to download it for Linux.

    The installation is very easy... just run the installer... .it will ask you for the directory setup... and once you provide... should it do any thing for you.

    .
    .
    Thank you
    Jay SenSharma
    http://jaysensharma.WordPress.com (WebLogic wonders are here)

  • Call the forms 6i aspx file

    Hello world

    It is my first thread in this forum. I hope you can help me.

    I need to call the forms 6i application aspx file.
              web.show_document(URL of aspx file);
             
    But the code above did not work.

    forms 6i application.

    In client/server by chance? Web.show_document, as its name suggests, works only in the web forms.

    In c/s mode, you can use the HOST command:

    host ('cmd /c start "");

  • creating reports using oracle application server

    Hi all

    I am a complete newbie with Oracle Application Server (OAS) and Oracle reports. My task is to generate HTML and PDF using OAS reports. The current application has an aspx (ASP.NET front end) pages that call third party fast Radar report tool that retrieves data according to the need of the user (such as month, day, year,... product name) and displays as a grid. I have to remove the FastRadar part and use the OAS OracleAS reports Services components to generate these reports

    I went through Chapter 12 of Oracle.Application.Server.10g.Essentials by OReilly 2004 edition

    She looks briefly by this part. But it seems to mention the subject of Oracle reports something like "reports Oracle has an interface based on an Assistant called Oracle Reports Developer who can create reports. Oracle Reports Developer is part of the Oracle Developer Suite. Reports created with Oracle Reports Developer can be deployed on the Web using OracleAS reports Services support in Oracle Application Server. »

    I'm not clear what to do. I have to create the report format in Oracle Reports using frontend based on a wizard called Oracle Reports Developer and deploy it by using OracleAS reports Services?

    Or, is it possible to create the report format with Services of OracleAS reports without using Oracle Reports. We said that we just installed OAS, don't know if Oracle reports is installed or not as it is done at a remote site.

    Any suggestions would be much appreciated.

    Thank you very much.

    Hello

    We must develop reports using Oracle Reports developer and then deploy to the application server. To do this, you need following Developer installed Oracle, it has wizards that can be used to prepare reports.
    This link may help you http://www.oracle.com/technology/products/reports/index.html.

    Mark it if it can help

  • App Server 10 g 2 - PDF reports called from forms go to a window in the background

    Hi all

    We have Application Server 10 g 2 in use, mainly for the old forms and reports. We also have installed Secure Java Web.Show_Document (frmrwinteg.jar) bean. Since the application of the October 2008 CPU when a form called a PDF report, he will pop in the background and leave the Internet Explorer window with the shape to the front. We have not changed the configuration settings that can affect it.

    Is there a way to get back to the old behavior, that to have the report appear in the foreground instead from behind internet Explorer? We would appreciate advice on this. Thank you.

    Sebastian,

    I had the same problem, but it turned out not to be the result of a CPU. If you use the Sun JRE instead of
    JInitiator, the JRE version could be your culprit. Our production customers are on of the JRE (Java 6 Update 4) 1.6.0_04
    (Java Runtime Environment). Forgive me if this is something that you already know. I just thought I would clarify in order of
    efficiency. 1.6.0_04 using, all of our reports are open in their own new instance of Internet Explorer in the foreground. Our
    customers do not have admin access to their machines, so they can't install the JRE updates. I recently installed
    1.6.0_11 (Java 6 Update 11) on my development machine and all of a sudden all the pdf reports go to the background,
    It doesn't matter if I use the application development, Validation or Production Server. The processors are tested on
    the development server before being moved to production, so our servers are fixed at different levels. I have
    uninstalled 1.6.0_11 roll me back to 1.6.0_04, which is always installed and magically all my reports go the
    to the foreground again. Is it possible that this or a different version of the JRE is installed on clients around the same
    time that you have installed the CPU? I hope this helps.

    Jason

Maybe you are looking for