#PAGINATION# in the report template

Hi there,
(Apex 4.0.1)
I am modifying the Standard, Alternating Row Colors report template, and in the After Rows sections I put:
<tr><td class="pwc_ReportHeader">#PAGINATION#</td></tr></table>
</table>In other words, I want the pagination to be displayed in the last row in the table, using a specific style.
However, this is what is generated in the page:
<tr>
  <td class="pwc_ReportHeader">
    <tr>
      <td colspan="7" align="right" >
        <table summary="">
          <tr>
            <td class="pagination"></td>
            <td class="pagination"></td>
            <td nowrap="nowrap" class="pagination"><span>1 - 2</span></td>
            <td class="pagination"></td>
            <td class="pagination"></td>
          </tr>
        </table>
      </td>
    </tr>
  </td>
</tr>As you can see, it replaced the #PAGINATION# placeholder with a table inside a tr, which completely messes up the layout I want. These tags don't even have IDs or classes associated to them so it is impossible to style them using CSS.
Where did those tr and table come from? Is it possible to change what is generated?
Thanks
Luis

Luis Cabral wrote:
In other words, I want the pagination to be displayed in the last row in the table, using a specific style.
However, this is what is generated in the page:
<tr>
<td class="pwc_ReportHeader">
<tr>
<td colspan="7" align="right" >
<table summary="">
<tr>
<td class="pagination"></td>
<td class="pagination"></td>
<td nowrap="nowrap" class="pagination"><span>1 - 2</span></td>
<td class="pagination"></td>
<td class="pagination"></td>
</tr>
</table>
</td>
</tr>
</td>
</tr>As you can see, it replaced the #PAGINATION# placeholder with a table inside a tr, which completely messes up the layout I want.Join the club:
{thread:id=333925}
{thread:id=1047198}
(I'm sure there are others.)
Where did those tr and table come from?From the innards of APEX.
Is it possible to change what is generated?Maybe. Never done this, nor seen it done:
{thread:id=1025125}
Another approach would be to use a Dynamic Action/JavaScript to modify the APEX-generated elements in the DOM.
These tags don't even have IDs or classes associated to them so it is impossible to style them using CSS.IDs and classes are not the only CSS selectors. Unless you're stuck in quirks mode on IE6/7/8/(9?), you can use attribute, child, adjacent sibling and pseudo-class selectors to target those elements.
If you post the complete report template we can try to identify possible selectors.

Similar Messages

  • Question on changing the report template to display the images

    I am trying to change the report template so that each table cell will display an image and a checkbox for the image. The column templatet for the new report template is like this:
    <td #ALIGNMENT# headers="#COLUMN_HEADER#" class="t17data">
    <table>
    <tr height="90%"><td>
    <img src= "&F101_GET_THUMB.#COLUMN_VALUE#" onmouseover="return onmouseover_img('#COLUMN_VALUE#');">
    </td></tr>
    <tr height="10%"><td align="center" valign="bottom">
    <input type="checkbox" name="f01" value="#COLUMN_VALUE#"/>
    </td></tr>
    </table>
    </td>
    My questions are:
    1. If the #COLUMN_VALUE# is null, the table cell will display a broken image icon and a checkbox. How could I avoid this? I could add condition to this template, such as when #COLUMN_VALUE# is not null, but how to refer to the value of #COLUMN_VALUE# in pl/sql?
    2. I want to always put the checkbox at the center bottom, but no matter what I set "align='center' valign='bottom', it is always close to the image. Since the image sizes are different, the appearance of the checkbox are just up and down. How to fix this?
    Thanks,
    Fengting

    hello,
    at designtime the elements from the template are physically
    imported into the report. the only way of re-applying a template
    is to use the wizard, which will re-default the layout.
    regards,
    the oracle reports team --pw                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Change Preferred Viewing Locale by a paramter field in the report template

    Hello,
    Is there a method that allows to change the Preferred Viewing Locale at the report template level?
    Actually I have some templates for final clients in different countries, and these reports should be generated in Infoview.
    In order to generate reports in different languages, I inserted a parameter {?Language}
    Then for caption/text I used a formula like this
    Select {?Language}
    Case "en_US": .....
    Case "de_CH": .....
    Case "it_IT": .....
    Case "nl_BE": .....
    However this won't work for date axis in charts and number formats.
    So I switched to Preferred Viewing Locale settings, which seemed to be exactly what I wanted cause everything can be changed according to the local settings, except that I need to change the setting every time by selecting View - Preferred Viewing Locale - German - (Germany)... for 20 different reports
    And what's more important is that I cannot change this setting when I launch the template in Infoview. Change in Preferences will impact all the templates while I just need change on one template only.
    I had a look on all the functions available and it seems that ContentLocale function can only display the current setting.
    Is there any solutions?
    Thanks in advance,
    Wenzhao

    Post your question to BOE Admin forums

  • In XL Reporter  the report template ER-1 is not working,

    In XL Reporter  the report template ER-1.ixr given by SAP is not working,
    Error message displayed: "Error in Expansion" how to correct this problem
    please give me the solution or mail me ER 1.ixr if you got working file, thank you
    Regards
    krish
    mail id:[email protected]

    Dear Radhakrishnan,
    This error has already been reported to SAP Support earlier also. It happens with SalesTaxRegister.ixr also and here is the solution for it :
    Whenever the Xlreport "SalesTaxRegister.ixr" is executed from
    XLReporter the error "Error in expansion" appears.
    This error occurs because the report references two fields which do not
    exist in the metadata.
    Note: SalesTaxRegister.ixr is provided by SAP for Indian localisation.
    To correct this problem, follow these steps:
    1.  Open the report definition in Excel.
    2.  Click menu 'Format > Column > Unhide' to unhide all columns. This
        will make columns A to AC visible.
    3.  Delete the content in cells O15 and O25 (PO4_NonDdctPrc).
    4.  Hide columns A to AC again and save the report.
    5.  Try to run the report again.
    The above solution will work for SalesTaxRegister.ixr report.
    For the customized report which the partner must have
    created, there would be some similar references that do not exist
    in the metadata. Once these references are deleted the report will work
    again.
    For further information please have a look at the note :  1072702.
    Regards
    Arshdeep

  • How to pull the date parameter to appear in the report template?

    Hi Gurus, and Experts,
    I need to pull the date parameter I selected in BIP to appear in my report template? How to code this in BIP?
    Identifier are: dto and dfrom
    date fromat string: MM-dd-yyyy
    Regards,
    JP
    Edited by: user10955574 on Nov 10, 2010 2:38 AM
    Edited by: user10955574 on Nov 10, 2010 2:39 AM

    Declare the parameter in the template as
    <?param@begin:param1?>
    and use it as <?$param1?>

  • Changing the report template

    Hi All,
    I have created a report using a particular template
    created by me. The template contains only Margin layout
    and font setting. Now, if i change the template
    can i get the report layout changed according to new
    template layout without disturbing body section. I tried
    by reassigning the template to the report through the
    report wizard but it changes the layout of body section.
    Is there any way out.
    Thanks.

    hello,
    at designtime the elements from the template are physically
    imported into the report. the only way of re-applying a template
    is to use the wizard, which will re-default the layout.
    regards,
    the oracle reports team --pw                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Report Template Pagination

    I've created a report "row" template and am having trouble displaying pagination.
    In the Pagination Template section I put
    <span class="RISKRPT">#TOP_PAGINATION#</span>
    where RISKRPT is the name of the report template.
    Can someone please tell me what I'm missing.
    Thanks
    Mary Jo

    Yes I have the report template working fine I just don't know how to code so the pagination displays on my new report template. In the "Layout and Pagination"section do I select a pagination scheme? Then in the report template "Pagination" section do I code something? This
    is what I don't know. I've tried #PAGINATION#, '#TOP_PAGINATION#' but only the literal values print on the report.
    Thanks
    Mary Jo

  • Unable to upload the updated/modified Report template (rtf file) in siebel

    Hi,
    I am unable to upload the updated/modified Report template (rtf file) if already exists in the local database.
    Initially I have uploaded a rtf template, generated xliff, registered it and can view the report from the registered view. Later I have made few changes to the rtf template, in the reports template view, I have uploaded this. When i run the report in the registered view, I am able to see the earlier version and it doesnt show me the updated changes.
    I am using 8.1.1.3 siebel and BIP 10.1.3.3.1 on local.
    Looking at the metalink found "How To Upload Modified RTF Template Files In The Siebel Application For BI Publisher Reporting [ID 1136418.1]" which is related to server but I am working on local database
    Please find attached the template, xml file. can you please look into this and update me ASAP
    Thanks,
    RV

    Hi,
    Not able to find Report - Standard templates or Report - Custom templates view in Administration - BIP reports in Siebel 8.1.1.3?
    We have applied 8.1.1.3 patch on 8.1.1.0
    below are the steps followed
    Reports are not generated after 8.1.1.3 patch installtion.
    we have also followed to below steps mentioned for this issue in oracle support.
    "In order to resolve this behavior it is necessary to ensure that the 8.1.1.3 FixPack has been applied to the Siebel Tools installation. This will provide an additional .zip file in the REPPATCH folder of the Siebel Tools installation. Once this has been done please then follow the configuration steps as documented :
    change sysprefix to X_ before sif import and chage back to SBL_ after sif import.
    1) Import the sif files from Siebel\8.1\Tools_1\REPPATCH\12-1VMBCSV.zip
    2) Import the 4 SIF files in the following order:
    S_XMLP_REP_TMPL_02112010.sif
    SBL_XMLP_REPORT_SELECTION_FLG.sif
    Report Template BC.sif
    Report Template Registration Applet.sif
    3)Apply the DDL for table S_XMLP_REP_TMPL and compile repository
    Once the above steps have been completed the Selected Record flag will appear in the Report Template Registration views."
    we still not able to generated able to generate reports even after following above steps.
    Thanks
    Sean

  • Error while Opening the report  from template builder

    hi all,
    After log in in the BI publisher template builder, tried to Open the report from the report Template . Then the message is displayed as Error occurred: ‘Please check the settings and try again’.
    I am using the OBIEE 10.1.3.3 version and Ms-Office 2000......
    Please give me the solution very urgent............
    Regards

    Hi,
    I am having the same issue. I am not able to import Crystal Report.
    the error is "No matching records found  'Queries' (OUQR) (ODBC -2028)  [Message 131-183]"
    I have previewed the report using Preview external crystal report option and is running perfect.
    please guide ASAP.
    Regards
    Sonil

  • How to add a report template to the template wizard?

    Dear All,
    I built a new report in BPC, and want to use it as the report template.
    I did following steps:
    1)change the "templaversion" in application set parameters from 15 to 16 (i.e, add a template)
    2)save my report to etools--save dynamic templats; and save it to the "report/wizard'
    3)open "client options"--"refresh dynamic templates";
    but when I choose "using dynamic templates" in the Action pane, I still found the template wizards are 15, not add my new templates.
    How to solve it? can any one help?
    Thanks in advance.

    If you completed the steps outlined, then you need to Change the Appset, Set Template Version, then refresh ClientSide Dimension Files.  Then you need to either re-login to the Excel client, or in your working Excel copy, goto etools, client options, refresh Dynamic Templates.
    After that, you should see the new added files. One key trick is when adding the description in th etext file, make sure you add the name and then hit TAB key to move to Strat the Description of the new wizard.
    But these steps do work, as I have re-tested the process in version 7M.
    Hope this helps.

  • Modifying the Standard Report template

    Hi
    I have a report with 10 columns and 2 of them are wb_id, pa_id. Depending on the search critiria either wb_id or pa_id will be null. I want to highlight the row with some color when I select any row and I am modifying the standard template and
    column template condition is 'Use Based on PL/SQL Expression' and it is
    NVL(#COL02#,0) = NVL(:GLOBAL_WB_ID,0). But when I run the report it is giving the error that encountered # wherea as expecting.......
    Thans a lot.

    Hi,
    I have a report page uses the following block of pl/sql as its source.
    This calls a function by passing page items and this functions returns sql query.
    DECLARE
    V_SQL VARCHAR2(4000);
    BEGIN
    V_SQL := WF_PCK02.search_wb_pa(
    :P1000_WB_ID,:P1000_PA_ID,:P1000_RIVER_NO,:P1000_GENRE,:P1000_LOCATION,:P1000_WATER_DEPENDENT,:P1000_BASELINE,
    :P1000_NBT_PRESSURE_TYPE_ID,:P1000_PURPOSE,:P1000_NBT_SIC_DESC,:P1000_ACTIVITY_DESC,:P1000_NBT_MORPH_ACTIVITY,
    :P1000_SW_ASSET,:P1000_ORDER_BY,:P1000_R1);
    RETURN V_SQL;
    END;
    Now if user is searching for water bodies the results look like this.
    10317 - Allt Ceitlein SURFACE WATER River Y 2a 2b N N
    10318 - Allt a Chaorainn SURFACE WATER River Y 2b 2b N N
    10319 - River Coupall SURFACE WATER River Y 2b 2b Y N
    10320 - Allt a Bhiorain SURFACE WATER River Y 2b 2b Y N
    if the user is searching for PAS the results look like this.
    - UKS7992310 Lochs Long and Goil SHELLFISH WATER - Y 1a 9z N N
    - UKS79923100 Ulva SHELLFISH WATER - Y 1a 9z N N
    - UKS79923101 Ura Firth SHELLFISH WATER - Y 1a 9z N N
    - UKS79923102 Voe of Clousta SHELLFISH WATER - Y 1a 9z N N
    - UKS79923103 Wadbister Voe SHELLFISH WATER - Y 1a 9z N N
    - UKS79923104 Inner West Loch Tarbert SHELLFISH WATER - Y 1a 9z N N
    I had written a java script to select the current row, and page refreshes when I click
    any where on the row and displays the display item saying that
    currently selected id is 10317
    or
    Currently selected id is UKS79923100
    and also assigns the 10317 to GLOBAL_WB_ID or UKS79923100 to GLOBAL_PA_ID
    Now my user want to change the color of the currently selected row.
    For this I am trying to change the report template like this
    Column Template 1
    <td class="t15data"#ALIGNMENT# style="background:#d1e2f3">#COLUMN_VALUE#</td>
    Column Template 1 Condition
    NVL(#2#,0) = NVL(:GLOBAL_WB_ID,0);
    BUT
    it is giving the following error.
    Encountered the symbol "<" when expecting one of the following: ( ) - + case mod new not null others table avg count current ........................
    ERR-1025 Error processing PLSQL expression. :GLOBAL_WB_ID = NVL(10317,0);
    Then I changed the condition to substitute the #2# in single quotes like this.
    NVL('#2#',0) = NVL(:GLOBAL_WB_ID,0);
    BUT it is giving this error
    Encountered the symbol "10317" when expecting one of the following: ( ) - + case mod new not null others table avg count current ........................
    ERR-1025 Error processing PLSQL expression. :GLOBAL_WB_ID = NVL('10317',0);
    I am unable to understand where the error is coming from.
    Please help me.
    10317 is the first row of the result set.
    Thanks a million in advance.

  • Duplicating the "Standard, Alternating Rows Colors" report template

    The built-in theme 5 comes with a report template called "Standard, Alternating Rows Colors". This theme's template type is defined as "Generic Columns". I need to create a duplicate of this report template that has a template type of "Named Columns" instead of "Generic Columns".
    I've tried to create a brand new report template using the "Named Columns" template type and then copy/paste the appropriate HTML code from the original to the new one. Obviously there are some options in the "Generic Columns" template type that are not in the "Named Columns" template type, and vice versa, but I copied over what I thought was appropriate.
    No matter what I do, I don't seem to come close to having my copy look like the original. I've looked over the Report Template section of the User Guide, but that hasn't helped. Any suggestions on how to accomplish what I'm trying to do?

    Hi Jackie,
    There must be some issues the apex_4_1.min.js file, try to reload it. In apex.oracle.com the tabular form with "Standard, Alternating Row Colors" just works fine.
    Regards,
    Natarajan

  • Access to customizing default: report templates

    I seem to remember far back in the corners of my memory, someone here on the forum mentioning that although we didn't have access at the time (probably back at HTMLDB 2.0) to customize the default report templates, that there were plans to make this an option in a future version of Apex. Does anyone have any idea if this is something that is being planned, or better yet, available today?
    If you're not sure what I'm talking about I'm referring to the field that says 'Report Template' in the 'Layout and Pagination' section of the 'Report Attributes' page in the application builder.
    The problem I'm having is that I'm using the 'default: vertical report, look 2 (show null columns)' report template and I've got some long column headings that I want to include a line break between each word of the heading, so they're stacked vertical instead of wide horizontally. I've add HTML break tags to the headings but they're disappearing when the page is rendered.
    I've made sure to set the 'Strip HTML' setting to 'No', but whether it's set to yes or no doesn't matter, the headings display the same either way.
    BTW, doing the same thing in a template based multi-row report seems to work fine. However, trying to use/apply the 'Value Attribute Pairs' report template yields the same result as the default vertical look template.
    So I have 2 questions:
    1) anyone know how I can make these heading words stack up vertically, one word to a line?
    2) are we going to get access to customize the default report templates?
    Earl

    Hello,
    1) anyone know how I can make these heading wordsstack up vertically, one word to a line?
    Probably the best way to do this is to just hard code
    a &lt;br /&gt; between your words.That's exactly what I'm doing (and what I said in my original post), however those breaks are disappearing during page rendering when I choose the report templates I mentioned.
    I don't understand why this technique works in the multi-row report templates and not in these vertically oriented value/attribute report layouts.
    2) are we going to get access to customize thedefault report templates?
    No, you should just use a regular theme based
    template, the default report templates are there for
    backwards compatibility and well basically for people
    that don't care about the UI. Since your at the point
    it seems you do care about UI the proper thing to do
    is to move to a standard report template that you
    have full control over.Fair enough. I'll look into that, but I think there's still an open question here as to why the HTML breaks aren't being returned in the page markup for these report layouts.
    Regards,
    CarlEarl

  • Custom Report Template Issue

    Hi,
    I have a Custom Report Template, it is a Named Column(Row) Report that I have created. It seems I can get the look and feel I want on a per row basis. But when I try and convert it to be able to loop through for a specific type, like a break on the first column, it gets all messed up. I was wondering if someone might be able to shed some light for me on this I have tried everything
    Here is the row template
    <table width="100%"  border="0" cellspacing="1" cellpadding="0" bgcolor="#000000">
       <tr  class="Tabledetail">
          <td class="SectionHeading" width="100%" bgcolor="#336699" valign="middle">
             <img src="spacer.gif" width="1" height="1">  <b>#1#</b> 
          </td>
       </tr>
       <tr class="Tabledetail">
          <td>
             <table width="100%"  border="0" cellspacing="1" cellpadding="1" bgcolor=white>
                <tr class="Tabledetail">
                   <td>
                      <img src="spacer.gif" width="5" height="1">
                   </td>
                   <td class=formlabel>
                      #2#
                   </td>
                   <td>
                      <img src="spacer.gif" width="5" height="1">
                   </td>
                   <td colspan=4 class="SectionHeading" bgcolor="#336699" align=middle valign="bottom">
                      <b>Evaluation Trips</b> 
                   </td>
                   <td>
                      <img src="spacer.gif" width="10" height="1">
                   </td>
                   <td colspan=4 class="SectionHeading" bgcolor="#336699" align=middle valign="bottom">
                      <b>All Other Trips</b> 
                   </td>
                </tr>
                <tr class="Tabledetail">
                   <td>
                      <img src="spacer.gif" width="5" height="1">
                   </td>
                   <td  class=formlabel>
                      #3#
                   </td>
                   <td  align=right class=formlabel>
                      <img src="spacer.gif" width="5" height="1">
                   </td>
                   <td align=right class=formlabel>
                      #4#
                   </td>
                   <td align=right class=formlabel>
                      #5#
                   </td>
                   <td align=right class=formlabel>
                      #6#
                   </td>
                   <td align=right class=formlabel>
                      #7#
                   </td>
                   <td>
                      <img src="spacer.gif" width="10" height="1">
                   </td>
                   <td align=right class=formlabel>
                      #4#
                   </td>
                   <td align=right class=formlabel>
                      #5#
                   </td>
                   <td align=right class=formlabel>
                      #6#
                   </td>
                   <td align=right class=formlabel>
                      #7#
                   </td>
                </tr>
                <tr class="Tabledetail" width=50%>
                   <td>
                      <img src="spacer.gif" width="5" height="1">
                   </td>
                   <td  class=formlabel>
                      #8#
                   </td>
                   <td class=formlabel>
                      <img src="spacer.gif" width="5" height="1">
                   </td>
                   <td align=right>
                      #9#
                   </td>
                   <td  align=right>
                      #10#
                   </td>
                   <td align=right >
                      #11#
                   </td>
                   <td align=right >
                      #12#
                   </td>
                   <td>
                      <img src="spacer.gif" width="10" height="1">
                   </td>
                   <td align=right >
                      #13#
                   </td>
                   <td align=right >
                      #14#
                   </td>
                   <td align=right >
                      #15#
                   </td>
                   <td align=right >
                      #16#
                   </td>
                </tr>
             </table>
          </td>
       </tr>
    </table>
    </td>
    </tr>
    <tr>
    <td><img src="spacer.gif" width="1" height="10"> </td>
    </tr>
    <tr>
    <td>Here is the before rows
    <table cellpadding="0" border="0" cellspacing="0" summary="" #REPORT_ATTRIBUTES# id="report_#REGION_STATIC_ID#">
      #TOP_PAGINATION#
      <tr>
        <td>
          <table cellpadding="0" border="0" cellspacing="0" summary="" class="report-standard">Here is the after rows
            </table>
        </td>
      </tr>
      #PAGINATION#
    </table>But when I try and pull the upper level html tables out of the row template the format goes to heck. Anyone have any ideas?
    Thanks in advance!

    goochable wrote:
    Thanks for the input! Yeah it is based on a query from a collection as all this data is summations that i am pre-populating.
    Yes this html is probably from 1998 or 1999 I think they told me actually lol
    So there is no way to accomplish what I am trying to do then?
    There is no way I could use a break on first column and modify the header info to get the same sort of look and feel?Still not really clear what you are trying to accomplish, and in my view there are so many problems with the "look and feel" that it's not worth perpetuating.
    Making a lot of assumptions, I've come up with the kind of HTML structure I'd use when marking up this kind of data. I added a page 2 to your example on apex.oracle.com, showing a basic presentation of this structure alongside the original for comparison, and another styled using the default theme L&F.
    <li>Given the requirement to use multi-level headers (and because I prefer to have total control over the HTML), I stayed with a custom report template rather than trying to utilise column breaking with a generic column report template. This also permits use of more advanced table structures than can be supported by standard templates, such as s<tt>colgroup</tt>s to organize the table columns as well as the rows:
    Before Rows
      <table cellpadding="0" border="0" cellspacing="0" summary="" #REPORT_ATTRIBUTES# id="report_#REGION_STATIC_ID#">
      #TOP_PAGINATION#
      <tr>
        <td>
          <table class="fish">
            <caption>Some fishy summaries</caption>
            <colgroup span="1"></colgroup>
            <colgroup span="4" class="evaluation-trips" align="right"></colgroup>
            <colgroup span="4" class="other-trips" align="right"></colgroup>
    After Rows
          </table>
        </td>
      </tr>
      #PAGINATION#
    </table><li>Rather than separate tables, the report is contained in one HTML table, utilizing the <tt>tbody</tt> element to subdivide this into separate row groups to meet the "break on first column" requirement. This is achieved using conditional row templates, with PL/SQL Expressions based on the values of metadata columns added to the query:
    Row Template 1
    Header rows and first data row for each row group. <tt>scope</tt> attributes are added to multi-column headers for improved accessibility:
      <tbody>
        <tr>
          <th colspan="9" scope="rowgroup">#C1#</th>
        </tr>
        <tr>
          <th></th>
          <th colspan="4" scope="colgroup">Evaluation Trips</th>
          <th colspan="4" scope="colgroup">All Other Trips</th>
        </tr>
        <tr>
          <th>#C2#</th>
          <th>#C4#</th>
          <th>#C5#</th>
          <th>#C6#</th>
          <th>#C7#</th>
          <th>#C4#</th>
          <th>#C5#</th>
          <th>#C6#</th>
          <th>#C7#</th>
        </tr>
        <tr class="#ALT#">
          <td class="desc">#C8#</td>
          <td>#C9#</td>
          <td>#C10#</td>
          <td>#C11#</td>
          <td>#C12#</td>
          <td>#C13#</td>
          <td>#C14#</td>
          <td>#C15#</td>
          <td>#C16#</td>
        </tr>
      #CLOSE_ROW_GROUP#
    Row Template 1 Expression
    This template is used when the row metadata shows that the current row is in a different row group from the previous row:
    #ROW_GROUP# != #PREVIOUS_ROW_GROUP#
    Row Template 2
    This is the "default" template, used for any subsequent data rows in the row group:
        <tr class="#ALT#">
          <td class="desc">#C8#</td>
          <td>#C9#</td>
          <td>#C10#</td>
          <td>#C11#</td>
          <td>#C12#</td>
          <td>#C13#</td>
          <td>#C14#</td>
          <td>#C15#</td>
          <td>#C16#</td>
        </tr>
      #CLOSE_ROW_GROUP#Both templates make use of a <tt>#CLOSE_ROW_GROUP#</tt> column value conditionally generated in the query that returns a <tt>&lt;/tbody&gt;</tt> tag if the current row is the last data row in the row group. (Mixing logic and structure in this way is not good practice, but APEX only allows up to 4 conditional row templates, which is completely insufficient for any moderately complex structure.)
    <li>Several metadata columns (incorporating heavy use of analytic functions) are added to the report query for use in the report template or CSS presentation:
    with fish as (
          select
                    c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c11, c12, c13, c14, c15, c16
                      Generate a fixed order for separate report sections/row groups.
                      (This is a guess as the actual requirement is not specified.)
                  , case c1
                      when 'OTC Summary' then 1
                      when 'Retained Catch Summary' then 2
                      when 'Discarded Catch Summary' then 3
                      when 'Discarded Species Composition Summary' then 4
                      when 'Retained Species Composition Summary' then 5
                      when 'Priority Species Biospecimen Summary - Discarded Catch' then 6
                      when 'Other Species Biospecimen Summary - Discarded Catch' then 7
                      when 'Dissection Summary - Discarded Catch' then 8
                    end row_group
                      Calculate row number within row group.
                      Copes with row order in some row groups being determined
                      numerically, while others used standard character semantics.
                  , row_number()
                      over (
                        partition by  c1
                        order by      to_number(regexp_replace(c8, '[^[:digit:]]')) nulls last
                                    , c8) group_rn
                      Calculate number of rows in row group.
                  , count(*)
                      over (
                        partition by c1) group_rows
          from
                  test)
    select
              c1
                Not clear on meaning of "Weight"/"Method" values: assumed this is
                column heading equivalent to "Species".
                Combine both source DB columns into one for HTML heading, dealing
                with various null/space/blank issues...
            , nullif(c2 || ' ', '  ') || c3 c2
            , ' ' c3
            , c4
            , c5
            , c6
            , c7
            , c8
            , c9
            , c10
            , c11
            , c12
            , c13
            , c14
            , c15
            , c16
            , row_group
                Get the rowgroup for the previous row
            , lag(row_group, 1, 0)
                over (
                  order by row_group) previous_row_group
            , group_rn
            , group_rows
                Determine odd/even row number: used for standard or alternate style.
            , mod(group_rn, 2) alt
                Generate a closing element if the row is the last row in the
                row group.
            , case
                when group_rn = group_rows
                then
                  '</tbody>'
                else
              end close_row_group
    from
              fish
    order by
               row_group
             , group_rnThis makes major assumptions about the sort order(s) and break(s) required in the report.
    <li>Finally, the visual presentation is applied using CSS rather than (mainly deprecated) HTML attributes, via an embedded style sheet in the page HTML Header:
    <style type="text/css">
    .fish {
      empty-cells: show;
      border-collapse: collapse;
    .fish tbody tr:first-child th {
      border-top: 1px solid #fff;
      font-weight: bold;
    .fish th,
    .fish td {
      padding: 3px 6px;
    .fish th {
      border-bottom: 1px solid #fff;
      border-left: 1px solid #fff;
      background-color: #275096;
      color: #fff;
      font-weight: 300;
      text-align: left;
    .fish td {
      text-align: right;
      .fish tr.\30  td {
        background-color: #dde;
      .fish td:first-child {
        text-align: left;
    </style>The default theme L&F report adds vertical borders to separate columns and column groups (latter may not be fully effective on IE: I'm not wasting my time on quirks mode fixes for that).
    The resulting report uses 60% less vertical space, and 87% less HTML code[1] than the original. Usability and accessibility are improved by eliminating nested tables and useless table cells and shim images, increasing the contrast between text and background colours, and using alternating row backgrounds for better visual tracking.
    [1] Including whitespace, but neither template is compressed in any way: both are in fully readale format including normal whitespace indentation.

  • How to reference a customised report template

    Hi
    I've created a copy of the standard reports template and modified it so that it does conditional highlighting. I only want to reference this template in one instance in my application so I want to keep the standard template for the other reports.
    How do I reference the new template without disturbing the other report templates?
    Thanks
    Andrew

    Only works for classic reports, click on report that you want to change in the region area of the builder then Report Attributes then change the Report Template in the layout and pagination section and apply changes. for IR's you have to override the IR CSS definitions in your page template.

Maybe you are looking for

  • Can't sign in

    Can't get signed in to iCloud. The iCloud help page, under Trouble signing in says, "Important:  If you use the same Apple ID for iCloud as you do for other Apple services, such as the Apple Online Store, iTunes Store, ... changing your iCloud accoun

  • Word processing - printing - or transfer to Mac

    I would like to get a good word processing app. and be able to transfer the page to my Mac or print it through Airport Extreme to one of my printers. I have iWork on my Mac but don't use it. I use Appleworks WP and data base. I know Pages is availabl

  • How to change a swatch color without losing the "global" status

    Hiya Forum! AppleScripting-Newbie talking. For an automated EPS-export using AppleScript and Illustrator CS4 on a G5 Mac running Mac OS X I need to change a global swatch's color. It needs to go form black:75 to black:55 and remain global, thereby ch

  • HP 1220C PS PRINTER WITH MAC YOSEMITE 10.10

    MY HP1220C PS WILL ONLY PRINT BLACK WITH MAC SYSTEM (ABOVE) --  IS THERE ANY SOFTWARE AVAILABLE  THAT I COULD USE TO MAKE IT PRINT IN COLOR ??  TKS  -- WINJE

  • 11g TP2 : subversion instability

    I encountered problems when committing changes in subversion. Ofter subversion return a message "authentification failed". I'm using a local repository, i'm alone. I manage two applications in the repository. One applications contains more than 5000