Report XML in Jdeveloper

Hi all

I am trying to generate a XML report from a page of the OFA. Initially to see how the integration of XML with OFA, I followed the steps of ANILPASSI and I amstill get the following error


Error message:

11/03/13 21:31:10 data were written when trying to load the model
11/03/13 21:31:15 Exception3oracle.apps.xdo.XDOException: \tmp\xdoQ80UcxA0c2031311_0931156251.fo (the system cannot find the path specified)



Here's my code for the controller:

/*===========================================================================+
| Copyright (c) 2001, 2005 Oracle Corporation, Redwood Shores, California.
| All rights reserved. |
+===========================================================================+
| HISTORY |
+===========================================================================*/
package oracle.apps.fnd.xml.webui;

import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream.
import java.io.IOException;

import java.sql.SQLException;

Import javax.servlet.ServletOutputStream;
to import javax.servlet.http.HttpServletResponse;

Import oracle.apps.fnd.common.VersionInfo;
Import oracle.apps.fnd.framework.OAViewObject;
Import oracle.apps.fnd.framework.server.OAApplicationModuleImpl;
Import oracle.apps.fnd.framework.server.OADBTransactionImpl;
Import oracle.apps.fnd.framework.webui.OAControllerImpl;
Import oracle.apps.fnd.framework.webui.OAPageContext;
Import oracle.apps.fnd.framework.webui.beans.OAWebBean;

Import oracle.apps.xdo.XDOException;
Import oracle.apps.xdo.oa.schema.server.TemplateHelper;

Import oracle.cabo.ui.data.DataObject;

Import oracle.jbo.XMLInterface;

Import oracle.xml.parser.v2.XMLNode;

/**
* Controller for...
*/
SerializableAttribute public class MyXmlPubDemoCO extends OAControllerImpl
{
public static final String RCS_ID = "$Header$";
public static final boolean RCS_ID_RECORDED =
VersionInfo.recordClassVersion (RCS_ID, "packagename %");

private static final int DEPTH = 4;
private static final int APP_ID = 300;
private static final String APP_NAME = "ASO."
private static final String TEMPLATE_CODE = "ASOPRTRTF";
private static final int BUFFER_SIZE = 32000;

/**
* Layout and logical configuration for a region page.
@param pageContext OA page context
@param webBean the grain of web for the region
*/
' Public Sub processRequest (pageContext OAPageContext, OAWebBean webBean)
{
super.processRequest (pageContext, webBean);
}

/**
* How to manage remittances form for form elements in
* a region.
@param pageContext OA page context
@param webBean the grain of web for the region
*/
' Public Sub processFormRequest (pageContext OAPageContext, OAWebBean webBean)
{
super.processFormRequest (pageContext, webBean);

Am = (OAApplicationModuleImpl) pageContext.getApplicationModule (webBean) OAApplicationModuleImpl;
OAViewObject vo = (OAViewObject) am.findViewObject ("colorVO1");
System.out.println ("the value of VO' + vo");
Event string = pageContext.getParameter ("event");
If ("Update". Equals (Event))
{
System.out.println ("in the application process");
DataObject sessionDictionary (DataObject) = pageContext.getNamedDataObject ("_SessionParameters");
HttpServletResponse response = (HttpServletResponse) sessionDictionary.selectValue (null, "HttpServletResponse");

ServletOutputStream os;

try {}
OS = response.getOutputStream ();

Set the output report file name and Content Type
ContentDisposition string = "attachment; filename is EmpReport.pdf ';.
ContentDisposition string = "attachment; filename is PrintPage.htm ';.
ContentDisposition string = "attachment; filename is PrintPage.xls ';.
response.setHeader("Content-Disposition",contentDisposition);
response.setContentType("application/pdf");
response.setContentType("application/HTML");
response.setContentType("application/MSEXCEL");

XMLNode xmlNode = vo.writeXML (XMLNode) (4, XMLInterface.XML_OPT_ALL_ROWS);
ByteArrayOutputStream OutputStream = new ByteArrayOutputStream();
xmlNode.print (outputStream);
System.out.println (OutputStream.ToString ());
ByteArrayInputStream InputStream = new ByteArrayInputStream (outputStream.toByteArray ());
ByteArrayOutputStream pdfFile = new ByteArrayOutputStream();

System.out.println ("data have been written Trying to load the model");

Generate the report PDF
() TemplateHelper.processTemplate
((OADBTransactionImpl) pageContext.getApplicationModule (webBean) .getOADBTransaction ()) .getAppsContext ();
APP_NAME,
TEMPLATE_CODE,
((OADBTransactionImpl) pageContext.getApplicationModule (webBean) .getOADBTransaction ()) .getUserLocale () .getLanguage ();
((OADBTransactionImpl) pageContext.getApplicationModule (webBean) .getOADBTransaction ()) .getUserLocale () .getCountry ();
inputStream,
TemplateHelper.OUTPUT_TYPE_PDF,
TemplateHelper.OUTPUT_TYPE_HTML,
TemplateHelper.OUTPUT_TYPE_EXCEL,
NULL,
pdfFile);
Test ASOPRTRTF

Write the PDF report to the HttpServletResponse object and rinse.
Byte [] b = pdfFile.toByteArray ();
response.setContentLength (b.length);
OS. Write (b, 0, b.length);
OS. Flush();
OS. Close();

} catch (IOException e) {}
System.out.println("Exception1"+e);
} catch (SQLException e) {}
System.out.println("Exception2"+e);
TODO
} catch (XDOException e) {}
System.out.println("Exception3"+e);
TODO
}
}
}
}

Import oracle.apps.xdo.XDOException;

Download the file named "XDOException" to the server and put it in myclasses/oracle/apps/OPE.

And download the file "oa" starting at $JAVA_TOP/oracle/apps/OPE and put it in myclasses/oracle/apps/OPE.

-Anand

Tags: Oracle Applications

Similar Questions

  • Report XML lack style sheet location

    Hi all

    I have a question about the XML report generated by TestStand. I use a heavy custom style based off NOR example style sheet horizontal.xsl. Report generation works fine on my system of development however when the sequence is deployed on machine runtime the report XML header is missing the stylesheet location. That is to say:

    Rather than:

    If anyone has an idea of what might be causing this problem I would be very grateful for any advice.

    Much thanks

    D.Barr

    Thanks for the reply.

    I found the problem. I determine the location of the style sheet by using a registry key. The registry key listed double slashes which resulted in the style sheet is not found. For example. C:\\Test\\T6MK6_PAS_Test_Sheet.xsl. With a single slash, the program worked as except.

    Thanks again

    D.Barr

  • Report xml GROSS output

    Hello

    is it possible for the output of a page, when you access, as raw html?

    I've created a report using the printer friendly model and a query using dbms_xmlgen.getxml like this
    select dbms_xmlgen.getxml('select code, descr from items') xml    from dual;
    This property returns the xml output, but the source of the page also contains some other stuff.

    I used to use it in an iphone app, so I want the page output to be only the XML in the request.

    Hello

    What about using the 'XML' model related to the simple SQL query - say: without DBMS_XMLGEN - APEX
    model report "XML" will be responsible for formatting XML - you don't need DBMS_XMLGEN more...

    Does that help?

    Concerning

    Carsten-

  • How to change weblogic.xml in Jdeveloper web project

    Hi all

    I have created a web application in Jdeveloper11.1.1.1 and deployed on weblogic Server 10.3, I found there are weblogic.xml under WEB - INF folder in the war file.

    I try to add something in weblogic.xml, but the problem is that I can't find weblogic.xml in Jdeveloper.

    How to edit weblogic.xml in Jdeveloper? Thanks in advance.

    Best regards
    Bill

    The weblogic.xml file is generated at deploy time if it does not exist in your application. To create specifically in your application design-time for editing, select the appropriate project, then the new option in the select New Gallery General-> deployment descriptors-> descriptor Weblogic deployment and in the dialog box select the weblogic.xml file. It will be added to the project-> Web Content-> WEB - INF directory.

    See you soon,.

    CM.

  • publish a report xml with LabVIEW

    All,

    I'll try to find a solution to my problem and I hope someone out there has an idea for me to try.

    My problem is I want to launch a test .xml report (which was created with TestStand) using LabVIEW for a user to view/print.  I created a simple vi of drop-down lists for a user to select the report that they want to see and I spent one way; the problem is that I do not know how launching this .xml in a kind of Viewer, my idea was to use internet explore, because it's the print controls, but the only function I can find to help "Open a URL in the default browser" and the error I see is attached (looks like I sends you something he dislikes) (, so I don't know if this feature is available for what I need because the links of my path to my files correctly with windows Explorer).

    A bit of history, I'm basically just trying to restrict the user to only view reports and not navigate around in my directories and then add this control to my operator TestStand Interface (I use the simple interface for TestStand 2012), its as simple as that.

    My question has 2 components:

    (1) anyone would be able to start on the path to open a xml report in Internet Explorer using LabVIEW?

    (2) does anyone know of a better way to solve this problem?

    Thank you

    Bill

    You can use a container of the WebBrowser .NET - believe it will display XML without problem, and then you can simply call the method 'print '.

  • How to read report .xml to a printer?

    How to read the .xml report that is sent by e-mail?  You open the file with something?

    Use the player to open the file. The report should be readable on the side of keft.

  • Report XML output problem

    Hello
    I am trying to execute the XML (work order print report eAM) report this report had parameters (name work order / on behalf of the work order) that allow me to run more State control work.
    but when I chose for example parameters
    Parameters: Name (UF1) work order / / / name of the order (UF5) work
    It must be good work 5 printing

    but problem is work order 1 print output only when I use the XML model alone, even if it must print 5 work as input parameters but the models show that 1 out of work order ...

    If I remove the template and change the output format of text report output run successfully.

    Thank you

    Thanks Farhan. problem solved by added repeating group.

  • VOA Reports.xml

    Hi everyone, by HOL-SDC-1431 - vSphere optimization assessment it is a laboratory in which I imported an xml file of report as mentioned on page 8 model:


    "4 four new reports have been created for the vOA program and are available as part of the registration process." We will start by walking through the importation process in vRealize Manager of operations (VR Ops) using the import of the model feature".


    Now the question is: where can I download this xml file? Has been published somewhere?

    Thank you

    Luca82,

    The process has changed how these reports imported in vR Ops.  I have attached a PowerPoint presentation that walks through the process of importation as well as the PAK file that includes the reports.  This process replaces the importing XML specified in the laboratory and we are working to update the lab to show this.

    If you are a partner of VMware, you can go to this link:

    www.VMware.com/go/vsphereoptimization

    and after logging in to the partner Center, you can always find the most recent version of the PAK file under the 'Show' tab (on the left navigation bar).  It's the reports generated by link vROps 6.0 product.

    For partners-VMware, it will be displayed at Solution Exchange VMware bit (found here).

    VSX home | Solution Exchange

  • What is the official reporting tool Oracle JDeveloper ADF applications.

    Hi all
    I'm on the migration of Oracle Forms and Oracle JDeveloper ADF reports.
    I have read several books on JDeveloper and ADF and I take. Now what I will use to create reports; tool Oracle to create reports, that is tightly integrated with JDveloper and ADF comparable to the relationship between Oracle Forms and Oracle reports.
    I will be grateful for your response.
    Best regards,
    Denis Ojok

    There is no tool tightly coupled with jdev. Tool of oracles of choice would be BI Publisher (I guess). However, you can use the reports jasper or any other tool to report as well.

    Timo

  • Report XML data

    Hi all

    Is possible to create a report output XML?

    I have a function that returns the XML code and need to create a report about him, I wrote a function that shreds XML and creates a collection that I use to create an interactive report, but I can't do the header of the report in this way.

    There are also other cases where the report has several sections and I need to post this, as several reports in APEX or a single report with several sections.

    Meet someone something like that before?

    Hello

    Here is an example of out-of-the-box... Note that you must omit the Clause WITH-provide the XML code as
    a literal - but the last part would be to start with a model...

    with xml as (
      select
    xmltype('
     Alerts
    
    2010-04-20/11:10:20
    2010-04-27/11:10:20
    
    
    1
    o1g
    2010-04-27/08:00:25
    OPEN
    DEVDB
    
    
    
    1fkh93md0802n
    select /*+ RULE */ * from customers where cust_id+0 between 100734 and 100736
    
    2010-04-27/09:43:38
    2008213504
     
     
    RBO: Rule hint in statement 
    
    
    
    d69gjv9g8bxk9
    select upper(substr(CUST_MARITAL_STATUS,1,3)), CUST_GENDER, count(*) from customers
    group by upper(substr(CUST_MARITAL_STATUS,1 || ,3)), CUST_GENDER 
    
    2010-04-27/09:05:26
    1577413243
     ,6
     ,6
     No specific reason
    
    
    
    ') doc from dual
    )
    select
      h.parm_startdate,
      h.parm_enddate,
      h.inst_name,
      r.row_sqlid,
      r.row_plan_hash
    from
      xml,
      xmltable(
        'for $i in /XML return $i'
        passing xml.doc
        columns
         parm_startdate varchar2(15) path '/XML/PARAMETERS/START_DATE/text()',
         parm_enddate varchar2(15) path '/XML/PARAMETERS/START_DATE/text()',
         inst_name varchar2(10) path '/XML/INSTANCE/NAME/text()'
       ) h,
      xmltable(
        'for $i in //ROW return $i'
        passing xml.doc
        columns
          row_sqlid varchar2(30) path '/ROW/SQL_ID/text()',
          row_plan_hash varchar2(30) path '/ROW/PLAN_HASH/text()'
       ) r
    /
    

    This help...?

    Concerning

    Carsten-

    Deutschsprachige APEX-community: tips, tricks, best practices
    http://tinyurl.com/apexcommunity

    SQL and PL/SQL: Tipps, tricks & recommended
    http://SQL-PLSQL-de.blogspot.com

    Twitter: @cczarski

  • Create subtotals in CROSS report XML tab

    Hello

    I have a requirement to obtain subtotals in cross tab XML report.
    Values and columns of x axis and there are generated dynamically by query.
    The y-axis contains the hierarchy. Between these heirachies, I need to have subtotals.
    If necessary, I can send a source xml and rtf e-mail.

    Please let me know if someone put in place before?


    Thank you.

    Published by: 808712 on November 9, 2010 05:12

    You've sent the updated files

  • Report XML question

    Hi all

    I'm working on the XML reports. This is the first time that I'm working on the XML reports.
    Here, I need like below.

    Report must contain 3 layouts. When the function run simultaneous program, 3 layouts should display with the data.
    The problem is now,
    first layout complete records on the second page, the second provision must begin in the new page and in the same way third provision must begin in the new page. I'm not able to manage the new layout from new page.
    can someone please help me with this problem.

    Thanks in advance.

    Hello

    Please use the following tag after the first and second layouts.

    Thank you
    Kiran

  • Problem with loading of the report XML metadata

    Hi all

    I have a report that has about 200 models/set of data (annual report), and when I try to "Edit", it gives me the following error.

    "the connection has been exceeded. (loadXML) »

    However if I "discovered" I get all the data in XML format

    Is there a way I can fix this error?

    Thank you in advance,

    BI - rookie

    BEEP Version: 10.1.3.4.1 Windows *.

    Published by: alkstar on September 24, 2009 23:05

    200! It is to be a record!
    What version and what browser do you use?
    Physically, what is the size of the OPE file?
    Thank you
    Tim

  • Why ADFPhaseListener not configured in faces - config.xml in JDeveloper 11 g?

    I expect something like that in the faces-config. XML when you use links ADF as shown in the Guide of Oracle Application Development Framework Developer 10 g Release 3:

    When an ADF Faces component bound to an ADF data control is inserted into a JSF page for the first time, JDeveloper adds the PhaseListener ADF in faces - config.Xml.

    * < faces-config xmlns = "http://java.sun.com/JSF/Configuration" > *.
    *...*
    * < cycle of life >
    * <>phase listener *.
    oracle.adf.controller.faces.lifecycle.ADFPhaseListener
    * < / phase listener > *.
    * < / life cycle > *.
    *...*
    * < / faces-config > *.

    But I don't see that this has generated in faces - config.xml, even in the demo storefront.
    How really the ADF PageLifeCycle is in the image in the ADF?

    See the "Note" in the section "customization of the ADF Page Lifecycle of 19.4" in ADF 11 g Fusion developer's Guide.
    (http://download.oracle.com/docs/cd/E12839_01/web.1111/b31974/adf_lifecycle.htm#CIAJGBID)

  • Oracle reports XML-&gt; model RTF in XML Publisher output

    Hello

    Is it possible to run the output of a report from Oracle (formerly, made with the report writer) reports through the postprocessor output for get templated RTF PDF?

    The report is already out well-formed XML and I can use the Plugin of Word XML Publisher to turn it into a PDF file. However, I want to 'Set', 'concurrent demand' such as the XML is automatically transformed into a PDF file.

    I guess it would be an another "executable" as XDODTEXE who do that?

    -Johan

    Hi Johan

    Check out the following

    http://www.Oracle.com/technology/products/XML-Publisher/docs/XMLEBSRep.PDF

    Departure from the last demo (white image) here

    http://www.Oracle.com/technology/products/XML-Publisher/demoshelf/shelf.html

    Tim

Maybe you are looking for