Example Named Column Report Layout?

Howdy,
Using APEX 3.1.2, I've successfully setup and tested Apache FOP for a print server. I'm hoping to create a multi-line report layout to emulate the MS Access (of Evil) one this app is replacing, but I'm having trouble getting started.
It seems that I need to create a Named Column report layout. I've been scouring this forum, the web, and even the new Pro APEX book to find an example of the contents of even the simplest of these XSL-FO files, but I can't find one anywhere. Granted, a little XSL-FO experience would help here, but I can't seem to glean enough from the web to put the pieces together, at least as it applies to APEX. It seems that the examples I do find contain static data, whereas it looks like I should be creating a template form for APEX to populate for passing onto the FOP engine.
Does anyone have a simple two-column layout they'd be willing to share? Or a good weblink?
TIA!
Rich

Hi Rich,
This is an example we use in our training:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:fox="http://xml.apache.org/fop/extensions" xmlns:fo="http://www.w3.org/1999/XSL/Format" version="1.1" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:saxon="http://icl.com/saxon" extension-element-prefixes="saxon" >
<xsl:template match="DOCUMENT">
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
<fo:layout-master-set>
<fo:simple-page-master master-name="pagemaster1" page-height="845.0pt" page-width="598.0pt" margin-top="10.0pt" margin-left="10.0pt" margin-bottom="10.0pt" margin-right="10.0pt">
<fo:region-body margin-left="28.0pt" margin-top="28.0pt" margin-bottom="28.0pt" margin-right="28.0pt"/>
<fo:region-before extent="28.0pt" precedence="true"/>
<fo:region-after extent="28.0pt" precedence="true"/>
<fo:region-start extent="28.0pt" precedence="false"/>
<fo:region-end extent="28.0pt" precedence="false"/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-name="pagemaster1" master-reference="pagemaster1">
<xsl:attribute name="force-page-count">no-force</xsl:attribute>
<fo:static-content flow-name="xsl-region-before">
<fo:block-container position="absolute" top="3.0pt" left="357.0pt" height="25.0pt" width="216.0pt">
<fo:block line-height="14.399999999999999pt" white-space-collapse="false"  linefeed-treatment="preserve"  text-align="start" position="relative" top="3.0pt" left="357.0pt" height="25.0pt" width="216.0pt" color="#000000" font-family="Arial" font-size="12.0pt" font-style="italic">
<fo:block text-align="left" white-space-collapse="false"  linefeed-treatment="preserve" >
<fo:inline>
<xsl:text>Report ran by: </xsl:text></fo:inline>
<fo:inline>
<xsl:value-of disable-output-escaping="no" select="USER_NAME"/>
</fo:inline>
</fo:block>
</fo:block>
</fo:block-container>
</fo:static-content>
<fo:static-content flow-name="xsl-region-after"/>
<fo:static-content flow-name="xsl-region-start"/>
<fo:static-content flow-name="xsl-region-end"/>
<fo:flow flow-name="xsl-region-body">
<fo:block/>
<fo:block-container position="absolute" top="4pt" left="2pt" height="752.0pt" width="536.0pt" border-width="1.0pt"> <fo:block span="none" white-space-collapse="false" font-family="Helvetica" font-size="12pt" text-align="start" position="relative" top="44pt" left="27pt" height="752.0pt" width="536.0pt"><fo:instream-foreign-object xmlns:xlink="http://www.w3.org/1999/xlink"></fo:instream-foreign-object></fo:block></fo:block-container><fo:block span="none"><!-- GENERATE TABLE START-->
<fo:table table-layout="fixed">
<fo:table-column column-width="80.0pt"/>
<fo:table-column column-width="80.0pt"/>
<fo:table-column column-width="80.0pt"/>
<fo:table-column column-width="80.0pt"/>
<fo:table-body>
<fo:table-row>
<fo:table-cell display-align="before" background-color="#cccccc">
<fo:block line-height="19.2pt" white-space-collapse="false"  linefeed-treatment="preserve"  text-align="start" background-color="#cccccc" color="#000000" font-family="Arial" font-size="16.0pt" font-weight="bold">
<xsl:text>Ename</xsl:text></fo:block>
</fo:table-cell>
<fo:table-cell display-align="before" background-color="#cccccc">
<fo:block line-height="19.2pt" white-space-collapse="false"  linefeed-treatment="preserve"  text-align="start" background-color="#cccccc" color="#000000" font-family="Arial" font-size="16.0pt" font-weight="bold">
<xsl:text>Hiredate</xsl:text></fo:block>
</fo:table-cell>
<fo:table-cell display-align="before" background-color="#cccccc">
<fo:block line-height="19.2pt" white-space-collapse="false"  linefeed-treatment="preserve"  text-align="start" background-color="#cccccc" color="#000000" font-family="Arial" font-size="16.0pt" font-weight="bold">
<xsl:text>Job</xsl:text></fo:block>
</fo:table-cell>
<fo:table-cell display-align="before" background-color="#cccccc">
<fo:block line-height="19.2pt" white-space-collapse="false"  linefeed-treatment="preserve"  text-align="start" background-color="#cccccc" color="#000000" font-family="Arial" font-size="16.0pt" font-weight="bold">
<xsl:text>Salary</xsl:text></fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell display-align="before">
<fo:block line-height="14.5pt" white-space-collapse="false"  linefeed-treatment="preserve"  text-align="start" color="#000000" font-family="Arial" font-size="12.0pt">
<xsl:value-of disable-output-escaping="no" select="REGION/ROWSET/ROW/ENAME"/>
</fo:block>
</fo:table-cell>
<fo:table-cell display-align="before">
<fo:block line-height="14.5pt" white-space-collapse="false"  linefeed-treatment="preserve"  text-align="start" color="#000000" font-family="Arial" font-size="12.0pt">
<xsl:value-of disable-output-escaping="no" select="REGION/ROWSET/ROW/HIREDATE"/>
</fo:block>
</fo:table-cell>
<fo:table-cell display-align="before">
<fo:block line-height="14.5pt" white-space-collapse="false"  linefeed-treatment="preserve"  text-align="start" color="#000000" font-family="Arial" font-size="12.0pt">
<xsl:value-of disable-output-escaping="no" select="REGION/ROWSET/ROW/JOB"/>
</fo:block>
</fo:table-cell>
<fo:table-cell display-align="before">
<fo:block line-height="14.5pt" white-space-collapse="false"  linefeed-treatment="preserve"  text-align="start" color="#000000" font-family="Arial" font-size="12.0pt">
<xsl:value-of disable-output-escaping="no" select="REGION/ROWSET/ROW/SAL"/>
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell/><fo:table-cell/><fo:table-cell/><fo:table-cell/></fo:table-row>
</fo:table-body>
</fo:table>
</fo:block></fo:flow>
</fo:page-sequence>
</fo:root>
</xsl:template>
</xsl:stylesheet>XSL-FO is not the easiest thing to learn ;-) but hopefully the above gives you a headstart.
Regards,
Dimitri
http://dgielis.blogspot.com/
http://www.apex-evangelists.com/
http://www.apexblogs.info/

Similar Messages

  • Report Query using a Named Column Report Layout fails to produce PDF

    I am testing FOP and the Shared Component Report Queries query with a Named Column Report Layout. The xsl file was built using Stylus Studio and worked fine with the saved XML data file in Stylus Studio.
    500 Internal Server Error
    500 Internal Server Error
    Servlet error: An exception occurred.
    The current application deployment descriptors do not allow for including it in this response.
    Please consult the application log for details.
    I assume this is a message from FOP. What do I do now?
    tia,
    Sam

    Sam,
    I would suggest to take APEX out of the picture first and see if you can get this to work directly with your FOP solution, i.e. generate the XML data and take your XSL file and then post it directly to the FOP JSP (or whichever rendering engine you use). If this works, the problem might be somewhere in your APEX configuration. If it doesn't work, then the problem is likely in your XSL or XML structure. Here's how you can setup a static HTML page to post your XML and XSL to FOP:
    http://marcsewtz.blogspot.com/2008/06/heres-another-posting-on-pdf-printing.html
    Regards,
    Marc

  • Pagination incorrect in Named Column reports

    I create a Named Column report template and a report based on that template.
    Everything ok but pagination
    - First page displayed correctly
    - Click Next page button, second page displayed but first page still there, it's not hidden,
    there's two page navigation panels
    Any help ?

    Here's the link
    http://apex.oracle.com/pls/otn/f?p=37181:10

  • Report layout in french not displaying french characters properly

    Hello,
    I have a report layout that I have created with a 3rd party tool (j4ldesigner). All it has on it is one label (displaying a couple of french characters as a test
    ). Within APEX I have created a test report layout and imported it as a named column report layout type. I then created a very simple report query and associated it with the test layout. When I run the test report, the layout launches but the characters éâ appear as éâ.
    So I'm thinking this has to do with language somehow. I have other reports which are generic named column reports, but those are manually entered and seem to work fine. The named column layout is imported, and I'm assuming some sort of conversion is happening where those special french language characters are concerned.
    The fact is this is a 11.2.0.3 database. I was assuming the language set would use the standard language librariy files which come with 11G (ie $ORACLE_HOME/nls/data) so I wouldn't have an issue. Since it is not working, do I need to use the language files associated with 9idata? Or is there an init.ora parameter I am missing?

    Hello,
    Within APEX I have created a test report layout and imported it as a named column report layout type.Make sure the Report Layout File is in UTF-8 encoding. Most of the times, the issue is with file encoding type.
    If you use text editors like [url http://notepad-plus-plus.org]notepad++ you can see and convert from one encoding to other.
    Regards,
    Hari

  • No one in ApEx forum knows how to modify report layout!!!

    Hi dear firends,
    I have got Named column report layout (XSL-FO, <!--Generated by Oracle BI Publisher 10.1.3.4.1-->) that was designed by another programmer.
    To change it , I downloaded the current file (xml extension file) using the download button on this page,
    But I can not modify it by Altova StyleVision , Altova XML or XF Designer! (
    How to I modify it rapidly ve easyly by a report layout designer other than BI Publihser?
    Regards
    siya
    APEX 3.2
    Edited by: sak on Feb 14, 2012 11:40 AM

    hello
    In shared Components\report queries or \reprot layouts of ApEx 3.2, has written
    Named column report layouts are file based. To change, download the current file using the download button on this page, then modify the file as needed. Afterwards, upload the modified file as a new report layout.
    How can I modify an XML extension file with other tool than BI publisher? (generated by BI Publisher )
    regards
    siya
    Edited by: sak on Feb 14, 2012 11:12 AM

  • Sorting on columns with templated Report -- Named Column (row template)

    Hi forum,
    I'm trying to duplicate a regular report's column sorting functionality in a "Named Column" report.
    The column headers are in the "Before first and after last row text" "Before Rows" area of the template :
    <th onClick="sortByColumn('#REGION_ID#',5)">Frequency</th>invoking this javascript:
    function sortByColumn(regionId,colNo) {
         var u = "f?p=124:401:&SESSION.:fsp_sort_" + colNo + "::RP&fsp_region_id="+regionId.substring(1);
           document.location.href=u;
    }I'd like to sort descending when a user clicks the column again, and to display the column sort arrows (up/down).
    However, since sorting is persisted per user, even when the page's cache is cleared, it would be necessary to pick up the sort column and order (ascending,descending) on page load or query it later using ajax, so that the sort display (the arrows) stays in synch with the actual sort.
    Has anyone got an idea how to do this?
    Cheers
    Edited by: YT on Apr 1, 2009 4:19 PM
    Edited by: YT on Apr 1, 2009 4:24 PM
    Edited by: YT on Apr 1, 2009 4:26 PM

    Hi,
    Sort ordering on reports are stored as user preferences - see Need to do column SORTING only when I click the column heading for Denes' example on how to use this
    Andy

  • Custom substitution strings in custom report layout (XSL-FO)

    I copied the default generic column report layout (XSL-FO) and made my own template. Everything worked except that I would need to pass some of my custom substition strings to the XSL-FO template. For example, I had a subsitution string named PDF_HEADER_TITLE. I could not simply hard-code it as &PDF_HEADER_TITLE. because it would fail to generate the pdf file. Does anyone know how I can solve this problem?
    Thanks.
    Andy

    Hey Smitha Mohan,
    In fact SAP BW MDX supports limited string manipulation and only with NAME and UNIQUENAME attributes.
    Here are some samples that you can use in universes:
    MID([0COSTELMNT].currentmember.NAME,1,4)
    LEFT([0COSTELMNT].currentmember.NAME,2)
    RIGHT([0COSTELMNT].currentmember.NAME,3)
    MID([0COSTELMNT].currentmember.UNIQUENAME ,1,4)
    LEFT([0COSTELMNT].currentmember.UNIQUENAME ,2)
    RIGHT([0COSTELMNT].currentmember.UNIQUENAME ,3)
    Use them along with Concate()
    Hope it should solves the req.
    Gracias...!!
    Let's play with Aurora (BO XI 4.0)
    Edited by: BOCP-BOE on Oct 28, 2010 3:10 PM

  • Named Column FOP Error

    I am trying to generate PDF reports using a named column template.
    APEX 4.1, using the APEX-supplied FOP.war deployed on Glassfish 4.
    I am using a Report Query - Report Layout.
    Whenever I use a generic report template, all works fine.
    When I use a named column report generated with Stylus Studio. I get this error (from the server.log):
    [2014-01-02T19:08:44.375-0500] [glassfish 4.0] [WARNING] [] [javax.enterprise.web] [tid: _ThreadID=23 _ThreadName=http-listener-1(5)] [timeMillis: 1388707724375] [levelValue: 900] [[
      StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception
    java.lang.NullPointerException
        at java.io.StringReader.<init>(StringReader.java:50)
        at org.apache.jsp.apex_005ffop_jsp._jspService(apex_005ffop_jsp.java:73)
        at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
        at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:411)
        at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:473)
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:377)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
        at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1682)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:318)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:160)
        at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:734)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:673)
        at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:99)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:174)
        at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:357)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:260)
        at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:188)
        at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:191)
        at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:168)
        at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:189)
        at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)
        at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:288)
        at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:206)
        at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:136)
        at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:114)
        at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)
        at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:838)
        at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:113)
        at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:115)
        at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:55)
        at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:135)
        at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:564)
        at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:544)
        at java.lang.Thread.run(Thread.java:722)
    In my original template - which worked fine in Stylus Studio - I had XPath for color-coding text based on values, and background-color coding certain rows based on values. I noticed Stylus Studio inserts special characters, including
    I redid the Stylus Studio template, bringing it down to bare-bones, Title and Table.
    Same issue.
    The template is:
    <?xml version="1.0"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:s="http://www.stylusstudio.com/xquery">
         <xsl:template match="/">
             <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
                 <fo:layout-master-set>
                     <fo:simple-page-master master-name="default-page" page-height="8.5in" page-width="11in" margin-left="0.5in" margin-right="0.5in" margin-top="0.5in" margin-bottom="0.5in">
                         <fo:region-body/>
                     </fo:simple-page-master>
                 </fo:layout-master-set>
                 <fo:page-sequence master-reference="default-page">
                     <fo:flow flow-name="xsl-region-body">
                         <fo:block>
                             <fo:block text-align="center">
                                 <fo:block>
                                     <fo:inline font-family="Tahoma">
                                         <xsl:value-of select="/DOCUMENT/TITLE"/>
                                     </fo:inline>
                                 </fo:block>
                                 <fo:block>
                                     <fo:table width="100%" border-style="solid" border-width="1pt" background-repeat="repeat">
                                         <fo:table-column/>
                                         <fo:table-column/>
                                         <fo:table-column/>
                                         <fo:table-column/>
                                         <fo:table-column/>
                                         <fo:table-column/>
                                         <fo:table-column/>
                                         <fo:table-column/>
                                         <fo:table-column/>
                                         <fo:table-column/>
                                         <fo:table-column/>
                                         <fo:table-column/>
                                         <fo:table-column/>
                                         <fo:table-column/>
                                         <fo:table-column/>
                                         <fo:table-column/>
                                         <fo:table-column/>
                                         <fo:table-column/>
                                         <fo:table-body>
                                             <fo:table-row background-color="green">
                                                 <fo:table-cell border-style="solid" border-width="1pt" border-color="gray" padding="2pt" background-repeat="repeat" display-align="center">
                                                     <fo:block font-family="Times New Roman" font-size="9pt" text-align="center" color="#FFFFFF" background-color="#008000">
                                                         <fo:block>
                                                             <xsl:text>Inst Type</xsl:text>
                                                         </fo:block>
                                                     </fo:block>
                                                 </fo:table-cell>
                                                 <fo:table-cell border-style="solid" border-width="1pt" border-color="gray" padding="2pt" background-repeat="repeat" display-align="center">
                                                     <fo:block font-family="Times New Roman" font-size="9pt" color="#FFFFFF" background-color="#008000">
                                                         <fo:block>
                                                             <xsl:text>Test</xsl:text>
                                                         </fo:block>
                                                     </fo:block>
                                                 </fo:table-cell>
                                                 <fo:table-cell border-style="solid" border-width="1pt" border-color="gray" padding="2pt" background-repeat="repeat" display-align="center">
                                                     <fo:block font-family="Times New Roman" font-size="9pt" color="#FFFFFF" background-color="#008000">
                                                         <fo:block>
                                                             <xsl:text>Reagent</xsl:text>
                                                         </fo:block>
                                                     </fo:block>
                                                 </fo:table-cell>
                                                 <fo:table-cell border-style="solid" border-width="1pt" border-color="gray" padding="2pt" background-repeat="repeat" display-align="center">
                                                     <fo:block font-family="Times New Roman" font-size="9pt" color="#FFFFFF" background-color="#008000">
                                                         <fo:block>
                                                             <xsl:text>Units</xsl:text>
                                                         </fo:block>
                                                     </fo:block>
                                                 </fo:table-cell>
                                                 <fo:table-cell border-style="solid" border-width="1pt" border-color="gray" padding="2pt" background-repeat="repeat" display-align="center">
                                                     <fo:block font-family="Times New Roman" font-size="9pt" color="#FFFFFF" background-color="#008000">
                                                         <fo:block>
                                                             <xsl:text>QC Lot</xsl:text>
                                                         </fo:block>
                                                     </fo:block>
                                                 </fo:table-cell>
                                                 <fo:table-cell border-style="solid" border-width="1pt" border-color="gray" padding="2pt" background-repeat="repeat" display-align="center">
                                                     <fo:block font-family="Times New Roman" font-size="9pt" color="#FFFFFF" background-color="#008000">
                                                         <fo:block>
                                                             <xsl:text>Laboratory</xsl:text>
                                                         </fo:block>
                                                     </fo:block>
                                                 </fo:table-cell>
                                                 <fo:table-cell border-style="solid" border-width="1pt" border-color="gray" padding="2pt" background-repeat="repeat" display-align="center">
                                                     <fo:block font-family="Times New Roman" font-size="9pt" color="#FFFFFF" background-color="#008000">
                                                         <fo:block>
                                                             <xsl:text>Inst</xsl:text>
                                                         </fo:block>
                                                     </fo:block>
                                                 </fo:table-cell>
                                                 <fo:table-cell border-style="solid" border-width="1pt" border-color="gray" padding="2pt" background-repeat="repeat" display-align="center">
                                                     <fo:block font-family="Times New Roman" font-size="9pt" color="#FFFFFF" background-color="#008000">
                                                         <fo:block>
                                                             <xsl:text>N</xsl:text>
                                                         </fo:block>
                                                     </fo:block>
                                                 </fo:table-cell>
                                                 <fo:table-cell border-style="solid" border-width="1pt" border-color="gray" padding="2pt" background-repeat="repeat" display-align="center">
                                                     <fo:block font-family="Times New Roman" font-size="9pt" color="#FFFFFF" background-color="#008000">
                                                         <fo:block>
                                                             <xsl:text>Mean</xsl:text>
                                                         </fo:block>
                                                     </fo:block>
                                                 </fo:table-cell>
                                                 <fo:table-cell border-style="solid" border-width="1pt" border-color="gray" padding="2pt" background-repeat="repeat" display-align="center">
                                                     <fo:block font-family="Times New Roman" font-size="9pt" color="#FFFFFF" background-color="#008000">
                                                         <fo:block>
                                                             <xsl:text>SD</xsl:text>
                                                         </fo:block>
                                                     </fo:block>
                                                 </fo:table-cell>
                                                 <fo:table-cell border-style="solid" border-width="1pt" border-color="gray" padding="2pt" background-repeat="repeat" display-align="center">
                                                     <fo:block font-family="Times New Roman" font-size="9pt" color="#FFFFFF" background-color="#008000">
                                                         <fo:block>
                                                             <xsl:text>CV</xsl:text>
                                                         </fo:block>
                                                     </fo:block>
                                                 </fo:table-cell>
                                                 <fo:table-cell border-style="solid" border-width="1pt" border-color="gray" padding="2pt" background-repeat="repeat" display-align="center">
                                                     <fo:block font-family="Times New Roman" font-size="9pt" color="#FFFFFF" background-color="#008000">
                                                         <fo:block>
                                                             <xsl:text>TEa Fixed</xsl:text>
                                                         </fo:block>
                                                     </fo:block>
                                                 </fo:table-cell>
                                                 <fo:table-cell border-style="solid" border-width="1pt" border-color="gray" padding="2pt" background-repeat="repeat" display-align="center">
                                                     <fo:block font-family="Times New Roman" font-size="9pt" color="#FFFFFF" background-color="#008000">
                                                         <fo:block>
                                                             <xsl:text>TEa Pct</xsl:text>
                                                         </fo:block>
                                                     </fo:block>
                                                 </fo:table-cell>
                                                 <fo:table-cell border-style="solid" border-width="1pt" border-color="gray" padding="2pt" background-repeat="repeat" display-align="center">
                                                     <fo:block font-family="Times New Roman" font-size="9pt" color="#FFFFFF" background-color="#008000">
                                                         <fo:block>
                                                             <xsl:text>Peer ean</xsl:text>
                                                         </fo:block>
                                                     </fo:block>
                                                 </fo:table-cell>
                                                 <fo:table-cell border-style="solid" border-width="1pt" border-color="gray" padding="2pt" background-repeat="repeat" display-align="center">
                                                     <fo:block font-family="Times New Roman" font-size="9pt" color="#FFFFFF" background-color="#008000">
                                                         <fo:block>
                                                             <xsl:text>Sigma</xsl:text>
                                                         </fo:block>
                                                     </fo:block>
                                                 </fo:table-cell>
                                                 <fo:table-cell border-style="solid" border-width="1pt" border-color="gray" padding="2pt" background-repeat="repeat" display-align="center">
                                                     <fo:block font-family="Times New Roman" font-size="9pt" color="#FFFFFF" background-color="#008000">
                                                         <fo:block>
                                                             <xsl:text>Sigma w/Bias</xsl:text>
                                                         </fo:block>
                                                     </fo:block>
                                                 </fo:table-cell>
                                                 <fo:table-cell border-style="solid" border-width="1pt" border-color="gray" padding="2pt" background-repeat="repeat" display-align="center">
                                                     <fo:block font-family="Times New Roman" font-size="9pt" color="#FFFFFF" background-color="#008000">
                                                         <fo:block>
                                                             <xsl:text>Grade</xsl:text>
                                                         </fo:block>
                                                     </fo:block>
                                                 </fo:table-cell>
                                                 <fo:table-cell border-style="solid" border-width="1pt" border-color="gray" padding="2pt" background-repeat="repeat" display-align="center">
                                                     <fo:block font-family="Times New Roman" font-size="9pt" color="#FFFFFF" background-color="#008000">
                                                         <fo:block>
                                                             <xsl:text>Grade w/Bias</xsl:text>
                                                         </fo:block>
                                                     </fo:block>
                                                 </fo:table-cell>
                                             </fo:table-row>
                                             <xsl:for-each select="/DOCUMENT/REGION/ROWSET/ROW">
                                                 <xsl:variable name="ROW" select="."/>
                                                 <fo:table-row>
                                                     <fo:table-cell border-style="solid" border-width="1pt" border-color="gray" padding="2pt" background-repeat="repeat" display-align="center">
                                                         <fo:block font-family="Times New Roman" font-size="9pt">
                                                             <fo:block>
                                                                 <xsl:value-of select="INSTRUMENT_NAME"/>
                                                             </fo:block>
                                                         </fo:block>
                                                     </fo:table-cell>
                                                     <fo:table-cell border-style="solid" border-width="1pt" border-color="gray" padding="2pt" background-repeat="repeat" display-align="center">
                                                         <fo:block font-family="Times New Roman" font-size="9pt">
                                                             <fo:block>
                                                                 <xsl:value-of select="TEST_NAME"/>
                                                             </fo:block>
                                                         </fo:block>
                                                     </fo:table-cell>
                                                     <fo:table-cell border-style="solid" border-width="1pt" border-color="gray" padding="2pt" background-repeat="repeat" display-align="center">
                                                         <fo:block font-family="Times New Roman" font-size="9pt">
                                                             <fo:block>
                                                                 <xsl:value-of select="REAGENT"/>
                                                             </fo:block>
                                                         </fo:block>
                                                     </fo:table-cell>
                                                     <fo:table-cell border-style="solid" border-width="1pt" border-color="gray" padding="2pt" background-repeat="repeat" display-align="center">
                                                         <fo:block font-family="Times New Roman" font-size="9pt">
                                                             <fo:block>
                                                                 <xsl:value-of select="UNITS"/>
                                                             </fo:block>
                                                         &l

    Hello Mike,
    Thanks for that but .. I had followed that paper exactly. When it gets to the "...make some fomrattign changes ..." part, the doc is not very specific. While I have yet to prove this out ( I have an APEX Listener, APEX 4.2 instance as well), I believe my template was incorrect no matter which APEX version (4.1 vs 4.2) or using the APEX Listener vs Glassfish deployment - the problem was indeed with my template.
    The main issue blocking PDF generation was the fact that in my template, I did not have column-width's assigned to my <fo:table-column ...> directives.   When I use Stylus Studio, the default post-processor is RenderX.XEP, not Apache FOP.  Apache FOP has more limitations .. or the RenderX post-processing is more advanced, however you want look at it.  Stylus Studio
    Once I got the column-width's defined, I had to go step by step in adding additional features to the template, paying particular attention to Apache FOP documentation and  Known Issues.  Switching the post-processor to Apache FOP in the Stylus Studio Scenario properties helps, but does not catch everything.
    I am plugging along .. my latest learning experience is that the nice XPath that works in Stylus Studio does not directly translate to Apache FOP ...I need to implement same using XSLT. 
    Fun with FOP!
    Back to Mike's point of using the APEX Listener and APEX 4.2 .. if I could, I would, but we cannot upgrade until next year sometime, so I've got to work with what I've got. For kicks, when I have time, I'll compare results between APEX 4.1 APEX-supplied FOP.war and the APEX 4.2 APEX-supplied FOP.war, to see the differences. It's still Apache FOP, so there may be someimprovements, but I sitll expect to need to stick to strict Apache FOP and XLST 1.0, which is clearly stated.

  • Use XML stored in the DB with an Named Columns (XSL-FO) report layout

    Hi Folks.
    Here's my 'challenge' du jour.
    I have an XML document saved in the database.
    It was uploaded through APEX (form with report) into a table where the column holding the XML file is defined as "SYS"."XMLTYPE"
    I have an XSD file which I am using as the report template definition.
    my report query is
    SELECT xml_data
    FROM   xml_documents
    WHERE  filename = 'test.xml'When I run the report in APEX stating "Use Generic Report Layout" I get a PDF stating [unsupported data type]
    Does anyone have any pointers/suggestions?
    I have downloaded Apache FOP 0.95 and have succesfully converted the XML into a PDF using the XSL file. Consequently I know that the XML and XSL documents I am using are 'well formed'.
    Many thanks
    Kind regards
    Simon Gadd
    Edited by: Simon Gadd on Mar 23, 2009 6:29 PM

    Just as a follow up, I have come to the logical conclusion that the APEX report query is expecting you to pull back a regular data set from a SQL query.
    This can then be parsed with an XSL format report layout. It's not expecting you to pull complete XML out of the database.
    Am I right?
    Simon

  • How do I set individual properties for a column in report layout at runtime

    How do I set individual properties for a column in report layout at runtime? I need to change this based on a user's input. This is for v10g.
    I need to change either the "Read from File" attribute or the "File Format" attribute for one column based on the user's input. IS this possible?
    Thanks in advance!

    Hi,
    define 2 columns and use format triggers to show the one or the other column.
    Regards
    Rainer

  • Dynamic Column Headings in Report Layout

    I am using Report Query/Report Layout for a custom report in BI publisher. My Column Headings are stored in the database. On my pages, I am using the replacement format ' &FIELD_NAME.' to have them show up correctly. How can I do that on my Report Layout?

    Hi -
    1) Add Query just for column headings under Source Query (you can obviously pass in bind variables to select the correct column values if need be).
    2) For layout, pull in the headers from data model (just like any other field) and use them to replace any existing "hard coded" headers.
    Good luck.

  • Difficult to achive the report layout with dynamic column names

    I have a report layout as below.
    So here the column names are dynamic.And each fixed row group has different calculations. I have a date parameter. If I select July 2013, then I need to show data from July 2012 to July 2013 with Columns(Jul-12, Aug-12...Jul-13). How to achive below layout
    with dynamic columns?

    Hi Sarayu_CM,
    According to your description, you want to filter the records of prior year based on only one parameter selection. Right?
    In this scenario, we can create two parameters. The first one is for user to select. The second parameter is based on the first parameter selection. We don't need to specify Available Values for the second parameter, but we should use expression to specify
    Default Values based on the first parameter selection. Use the expression below:
    =DateAdd("m",-12,FormatDateTime(Parameters!param1.Value))
    Then we just need to apply a filter on the matrix/dataset to get the records which the date is between values in these two parameters.
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

  • Changing details layout for a multi column report

    I have a report that contains linked 2 subreports. The report has a details layout width of 2.5 inches which will create a 3 column report (Format groups with multiple columns is checked) . This works fine for my first subreport as it is small enough to fit that width. However that isn't enough room for my second sub report. Ii need to change the details layout width from 2.5 inches to 3.5 for a 2 column report then back again when that section is finished. Is this possible?

    i believe you can depends on where you place you subreports
    insert a 2nd group under the first, place 2nd report in the new details section
    in the section expert next to the details section check off underlay.
    this will lay them out next to each other but grow independetly

  • PDF Printing Issue - Customised Report Layout Error

    Hi,
    I am trying to get a PDF file output based on the customised RTF file created. I follow the following steps but I am facing an issue with that.
    (i) Go to Shared Components > Report Queries.
    (ii) Create a new Report query with more than one query.
    (iii) Using the XML Data in the Report queries, create a Report Layout (RTF) file.
    (iv) Navigate to shared components Report Layout and upload the RTF file.
    (v) Once this is done, use the Report Layout created in the Report Queries. Select the Layout name from the Drop Down.
    (vi) Click on TEST REPORT, this produces an error: Adobe Reader could not open the <file name> because it is either not a supported file type or because the file has been damaged (for example it was sent as an email attachment and wasn't correctly decoded )
    Additional Info
    The apex instance configured with Embbedded plsql, rdbms version is 11.1.0.7.0 and the BI publisher version 10.1.3.3.
    ISSUE DESC
    When I use mulitple Queries even after using Generic Report Layout I get the output for the first query alone in the PDF and the remaining Queries are ignored.
    And when i use a user defined template, then even If i have a single report query I get the error.
    To summarise, I am not able to use the customised Layouts.
    I have reproduced the issue in apex.oracle.com
    Please log in using,
    WORKSPACE: demo_test
    USER NAME: [email protected]
    pwd: vidhya
    After logging in please select the Application Builder.
    In that select the Application named PDF.
    Select the Shared components > Report Queries
    Select the Report Query named test.
    Click on the TEST REPORT button in the Source Queries Section.
    You will get the error.
    Now in the same page in the Report Query Attributes Section change the Report Layout to Use Generic Report Layout and then click on 'TEST REPORT', this will give the PDF file without errors.
    The same report has been called from the PRINT REPORT button provided in the page 1 of the application.
    This issue is really urgent and critical. Require your inputs/help.
    Thanks,
    Ramya

    I' an APEX newbie and believe I am having the same or a similar problem. I am (for now) developing a system using the hosted Apex development system online. I have created a Report Query which works fine with the default layout. I downloaded the XML (tried both sample data and schema) into Word 2007 with the BI Publisher Template Builder. I used the table wizard to create a simple layout containing all columns with no customization at all. Saved as an RTF, uploaded to Apex as a Report Layout, associated it with the Report Query, clicked Test Report -- and I got nothing.
    When the is a PDF, I get the same error you mention ( Adobe Reader could not open the <file name> because it is either not a supported file type or because the file has been damaged (for example it was sent as an email attachment and wasn't correctly decoded ). If I switch to an HTML file the out is just a blank screen.
    If I switch back to generic report layout, it works fine. This suggests there is something wrong with the template, though it looks fine in Word with the sample data.
    I've searched the forums and Google for the better part of a day. What am I missing?

  • Report Layout - Down then across

    Is it possible to create a report layout that is down then accross
    For example
    Row1_Col1 Row2_Col1 Row3_Col1
    Row1_Col2 Row2_Col2 Row3_Col2
    Row1_Col3 Row2_Col3 Row3_Col3
    Thanks
    Paul

    Hi Paul,
    Yes, this is possible to do: [http://apex.oracle.com/pls/otn/f?p=267:92] (this is a very, very, basic version, just to give you an idea - obviously, more styling would need to be done to get it to look right on your page)
    This is done using a "Named Column (row template)" report template.
    For this example, on a new "Named Column (row template)" report template, I have the following settings:
    Row Template 1:
    &lt;td class="t18Data"&gt;#1#&lt;br&gt;#2#&lt;br&gt;#3#&lt;br&gt;#4#&lt;br&gt;#5#&lt;/td&gt;Before Rows:
    &lt;table cellpadding="0" border="0" cellspacing="0" summary="" class="t18Standard" id="#REGION_STATIC_ID#"&gt;
    &lt;tr&gt;&lt;td class="t18Data" style="font-weight:bold; background-color:silver"&gt;EMPNO&lt;br&gt;ENAME&lt;br&gt;JOB&lt;br&gt;SAL&lt;br&gt;COMM&lt;/td&gt;After Rows:
    &lt;/tr&gt;&lt;/table&gt;Hopefully, that will give you an idea of what you can do. Note that I haven't used the pagination settings on the template - you can copy these from the Standard report template if required.
    Andy

Maybe you are looking for

  • How to connect Macbook to TV through Dvi to VGA adapter.

    I recently got s Macbook and was wondering how to connect it to my 32 inch sony tv. I have the dvi to vga adapter and recently bought an adapter that converts the VGA into RGA adapters + S video (all of which my tv has) When I connect the TV with the

  • Can i have bt sport installed on more than one com...

    I have bt sport app installed on this computer.  I have recently had to change the motherboard because it broke.  Now bt sport app wont let me view saying error 6013.  So it thinks its a new computer, what to do? Thanks

  • Project will not render with 'I-Frame only MPEG'

    Hey Adobe, I am posting this at your request.     I previously used to have an old Intel Core2 chip system. I upgraded this so that my video editing life would be faster.  I have a new motherboard, with a new intel I7-4770 @ 3.5Ghz chip. same memory

  • Itunes crash. PLEASE HELP

    I was downloading a song. I believe I was tring to import it into itunes. the computer thingy started spinning and when i went to force quit everthing, a box came up indicating that itunes was damaged. How can i get all my songs back.. Any advice wou

  • Address Book won't launch

    Hello! Sorry, if this has been covered before, but for some google hours I couldn't find any answer. Address Book doesn't launch: "The application Address Book quit unexpectedly. ... ... Relaunch". Relaunching doesn't work either. And this is the fir