Modify a report region template

Hi
I am new on Apex, so my question could seem elementary! :-(
I would like to create a mutiple report on one region, as explained and described on this forum in many places, but I am stuck at the begining!!
- How can I copy a report region template?
and
- How can I copy a page template?
Many thanks for your lights
Regards,
Fred

Hi Fred,
In your application, go to Shared Components, Templates. Then click the Create button and select the template type. On the next prompt, ensure that you select the "As a Copy of an Existing Template" option, then click Next until you get to a list of current templates. Change the name of the template you want to copy and change the Copy? drop-down from No to Yes and click the Copy xxxx Templates button. You will then be returned to the templates list - click on your new template to edit it.
Andy

Similar Messages

  • Need to make report "printable" How to change report look (template?)

    We are using Theme 2 and it's the only one installed (that I can see anyway) and we aren't going to be installing anything else. I can't do anything that causes a major upheaval in the application because it has 104 pages and is in production. We are using 3.0 and 10g. We don't have BI (and can't afford it) so I'm trying to make some reports printable.
    With theme 2, the column headers are shaded and text is blue - this shows up funny when printing so I want to modifiy a template that leaves all the lines in, changes the shading to grey, text to black and removes the "region" shading/decoration. I tried this by just modifying just the region template (and leaving the report alone) and it works other than the title is small and all I can do with it is center or bold, no matter what I try, it doesn't increase in size.
    So I tried to modify an existing template but every line has a reference to theme 2
    i.e. class = t2header and I don't know what to put there instead of the t2 that will make it stop using that theme and yet still show the lines, etc, that I want in the report.
    Obviously I don't have a clue what I'm doing, and anything I find to help - I've been playing with Firebug and can figure out where to make changes, I just don't know what I'm supposed to change things to.

    Just one more question ;-)
    if I put <style> th.t2header { color:red; }</style> in the Region Definition Header on a page the text in ALL regions on that page (not just the region in which I put this style) turn red. How can I make it only turn the region it's in red, not all of them?
    I would prefer to put it in the Template but I don't know how... this is my code but if I try to reference th.t2header it just pushes everything to one side, or does nothing, so I guess I'm not putting it in the right place?
    <table cellpadding="0" border="0" cellspacing="0" summary="" id="#REGION_ID#" class="htmldbRegion">
    <td class="t2RegionHeader" style="color:black;" valign="bottom">#TITLE#</td>
    <tr>
    <td class="t2RegionBody" valign="top" colspan="2">#BODY#</td>
    </tr>
    </table>

  • Apex 4.1 different font text in Reports Region and Interactive reporting

    Hi everybody,
    In my APEX 4.1 page, I have two regions using the same ''Reports region" Template but font text are different. Why The first region is an interactive reporting. The second it's a report. I know that each one has his own data for sure but the same region template .Spaces between colons are different. Is it normal ?  I want to have the same font text for the two regions.
    Thanks in advance. Bye.

    Apex4.0+HTML_DB1.6 wrote:
    Theme 13 is not an APEX 4.x theme ? How I can know that is one of this serie ?
    Legacy themes are flagged with a "*" in the theme gallery. Standards mode themes are not. (I don't have access to APEX 4.1 at present to be able to identify specific themes.)
    Properties of interactive report components, is it possible to take a look on this properties or it's a "black box" ?
    You can either look in the global APEX style sheet, or (probably more usefully) use a browser web inspector to examine the CSS properties of the IR components in the page.

  • Center the buttons in the reports region

    I have 2 buttons with Button Position as "Top and Bottom of Region".
    Button Alignment is "Right"
    How do I position the Button Alignment to be "Center" ??
    Thank you, Bill

    Hi,
    I created a copy of "Reports Region" template and adjusted buttons:
    Moved CREATE and CREATE2 tags to extra rows in the BODY table.
    Worked great!
    [td class="t2ButtonHolder" valign="bottom" >#CLOSE#   #PREVIOUS##NEXT##DELETE##EDIT##CHANGE##EXPAND##COPY##HELP#[/td>
    [/tr>
    [tr>[td align="left" valign="bottom">#CREATE#[/td>[td align="left" valign="bottom">#CREATE2#[/td>
    [/tr>
    [tr>
    [td align="center" class="t2RegionBody" valign="top" colspan="2">#BODY#[/td>
    [/tr>
    [tr>[td align="left" valign="bottom">#CREATE#[/td>[td align="left" valign="bottom">#CREATE2#[/td>
    [/tr>
    [tr>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • How to format report region titles?

    How do I format the report region titles with CSS? Is there a template for the Title lable?
    Pete

    Hello,
    The Report Template or the Report Region Template?
    And yes you can do both.
    Example of report template with css.
    http://htmldb.oracle.com/pls/otn/f?p=11933:7
    Carl
    Message was edited by:
    Carl Backstrom

  • User Interface Template for Interactive Report Region

    In 3.2, where do we set the user interface template for Interactive Reports region?
    No matter what out of the box theme I switch to, the Interactive Reports region shows the same. What and where do I change the template so that alternating rows use two different colors?

    There is no template for Interactive Reports like for a "normal" report. You need to modify the CSS and supply your own for this to happen.
    I believe most things are tagged with #apexir - firebug with Firebox is invaluable. This thread may help:
    Re: changing the look and feel of interactive report.

  • Modifying Default Report Templates

    Hi there,
    APEX v3.0.1.008
    I have created an application using Theme 12.Blue and am evaluating the different templates that are available out-of-the-box. The Default: Look 2 template best meets my needs in terms of layout but unfortunately has Sand colouring so I'd like to be able to customise this to change the Sand colours to Blue.
    When I navigate to Shared Components -> Templates -> Report I do not get the opportunity to Copy or Modify this Template. Can someone please explain why is this the case and any workarounds to be able to modify this Report Template?
    Many thanks,
    Gary.

    Hey Alistair,
    I'm not sure how your solution solves the problem. When I go to Themes, click on my theme and look at the template for that theme, I see a bunch of different items for each type, like button, region, etc. Most of my pages simply say look at the defaults in the template and I want to change those defaults. On the template page I see some are checked as the default and I'd like to change to a different one if possible.
    Thanks again,
    ~Chris

  • Classic Report with Hide and Show Region Template does not show report

    Hello,
    I created a "No Template" region on a page with a Classic Report. When I change it to a "Hide and Show" region template, the report does not show up when I click to Show the region...is there an additional step i'm missing to make the report show up. Its a very simple query.
    Thanks in advance,
    John

    How about posting some relevant information like Apex version, RDBMS version, Theme you are using, etc.?
    Regards,

  • Insert a report region in a page template

    Hi,
    i have a report region in the sidebar of a page which displays some values from a table.
    i would like to show this report in every page of my application. how can i insert this report in my page template?
    i know this report of mine should be displayed in #REGION POSITION 2# of my page template but... i don't know how to integrate it.
    thank you very much,
    matteo

    Hi matteo,
    You can put your report in page Zero.
    Every elements you put in page zero will display in all your application pages.
    However if you don't want the report to display in some page, like the login page, you must put a condition in the conditional display settings.
    Paulo Vale
    http://apex-notes.blogspot.com

  • Background Image on a Report Region

    Greetings,
    Is it possible to put a background image on a report region? Using the code shown below I can get an image on most other region types, but the code simply doesn't work on a report region.
    Thanks in advance for your help, Tony
    REGION HEADER
    <table width="100%" cellspacing="0" cellpadding="0" border="0" align="left"
    background = "#WORKSPACE_IMAGES#image.jpg">
    <tr height="500px" align="left" valign="top">
    <td>
    REGION FOOTER
    </td>
    </tr>
    </table>

    cloaked wrote:
    Greetings fac586,
    Been reading up on CSS's. I guess the main aspect is to determine the CSS component that deals with the Tabular Form in the Template I am using and modify it. I would need to modify the background attribute of the Tabular Fom, right?
    Gotta crawl before I walk, so I am also assuming that I would modify the CSS initially with a hard-coded background image. Then, if I get that to work I would make the image dynamic based on the criteria in a database. Am I on the right track?
    Is there a common attribute/component in the Apex Template CSS's for Tabular Forms? I've tried to find it, but am not sure what I'm looking for.Tabular forms can be created using any report template&mdash;built-in or custom&mdash;so the CSS will differ by theme and template.
    Yes, you can define background images for report templates, but It's not appropriate to do what you're trying to do at the report template level. Templates are static and defined at design-time. Challenging Apex Page - Grid with 100+ items - Suggestions Needed. This needs to be dynamic and determined at run-time.

  • Link in report region

    Hi,
    I have report region(type=sql query). In that report region i want to add a hyperlink(View all). When user clicks on the hyperlink it should bring them to another page. Can anyone help me in this issue. i am using apex4.0.

    Where can i find button classIn the button template
    Usually(depend's on the theme) redirect buttons template are link tags with some class that styles them like a button. Else you can create such a button template(by copying it from another theme) without any styling
    For example a button template like
    &lt;a #BUTTON_ATTRIBUTES# class=&quot;&quot; href=&quot;#LINK#&quot;&gt;#LABEL#&lt;/a&gt;would render the button like a plain link

  • 2 Report -Regions combine in 1 Report-Region but 2 different SQL-Querys

    Hallo,
    I have a question.
    I have a page and within this page 2 different report-regions. Each of this regions has its own sql-query.
    Now I would like to concentrate them in 1 report with one title. But there are still 2 differnet sql-query
    that I can't combine. My issue is that I only want to show the result in one report.
    Does this work or is there a workaround I could do?
    Thanks, Jade

    Hi,
    As the report region's title is just whatever text you've entered, you can just put the title on the second report onto the first report and set the second report to use "No Template". You would probably need to remove the pagination settings for both reports - select No Pagination and set the row count to a high number.
    The final bit would probably require a new report template - you can create a copy of the existing report template that you're using - and remove the Column Heading Template setting. This is only necessary if you need to remove the column headings from the second report. There would be a gap between the two reports - not sure if you need to remove this as well? If so, you would have to adjust both templates to remove the this from the bottom of the first report and the top of the second report.
    I think that how you go about this will depend on exactly what you need to see between the two reports - if they need to look as though they are just a single report then you may have to complete all of the above steps.
    Andy

  • Connecting a report region and a PL/SQL region

    Hi,
    I have created a report region whith pagination that only show 1 row at a time. I can then navigate backwards and forwards through this recordset. The first reportcolum in this recordset contains a number.
    I have also, on the same page, created a PL/SQL procedure region. What I want is to use the number from the SQL region as an input to the PL/SQL region. So when I navigate through the report (Using the pagination arrows), the PL/SQL region is in sync with the record I'm currently seeing in the report.
    Is this possible or do I have to try something different?
    Regards
    Trond

    Hi Trond,
    If you only want to show one record in your first region, it might be best to work with page items, retrieve one record at a time and use that data as the source for your page items. It's easier to implement and easier to reference those values in your second region. Reports are great if you have more then one record.
    Having said that, there are ways to implement it the way you outlined it in your posting. Granted it's not very elegant but it serves its purpose. You could write your own PL/SQL package, use this to set a global to the current row's primary key value and reference that global in your second region.
    Create your package as follows:
    create or replace package md_sample as
    g_pk_value number;
    function set_value(p_value number) return number;
    end;
    create or replace package body md_sample as
    function set_value(p_value in number) return number is
    begin
    g_pk_value := p_value;
    return 1;
    end;
    end;
    Now you need to make sure that your report calls this package appropriately. Calling this as part of your SQL statement won't work properly as it would also be called for records not currently shown on your page. A better way would be to use it for a PL/SQL expression within your report template definition. Pick a custom report template for your report and edit that template. Scroll down to the condition for the first column template and pick “Use Based on PL/SQL Expression”. Then type in the following expression (this is based on a select deptno, dname, loc from dept report):
    md_sample.set_value(#DEPTNO#)=1
    After that you'll be able to reference the global md_sample.g_pk_value. You could e.g. use this as the source for page items shown in your second region.
    Hope this helps,
    Marc

  • Conditional display in a SQL-Report/Report Region

    Hi,
    here I have an example for "Conditional display in a SQL-Report/Report Region". I figured it out in Firefox 3.6.2 using Firebug as development tool on Apex 3.2.1.00.12.
    First you have to put the following javascript code in the Page HTML-Header:
    <script type="text/javascript">
    <!--
    // SOURCE
    // W:\oracle\PRJ DWLS\javascript.07.js
    // Beispiel Funktion zur bedingten Formatierung einer Tabellenzelle.
    // Help (Substitution Strings):
    // http://htmldb.oracle.com/pls/otn/wwv_flow_help.show_help?p_lang=de&p_session=2412201185523196&p_flow_id=4003&p_step_id=420,4003
    // HTML Expression:
    // <script>ex_conditional_td('R094260001010', #ROWNUM#, #COLNUM#-1);</script>#DFT_COND1#
    function ex_conditional_td
    ( p_id
    , p_rownum
    , p_cellnum
      var l_td;
      l_td = vd_getColumn(p_id, p_rownum, p_cellnum);
      // hier die Bedingung definieren
      if (true) {
        l_td.style.color = '#808080';
    }  // -- eof ex_conditional_td -- //
    // Beispiel Funktion zum Abstellen der onMouse Funktionalität der Tabellenzeile
    // HTML Expression:
    // <script>ex_conditional_tr('R094260001010', #ROWNUM#);</script>#DFT_ID#"
    function ex_conditional_tr
    ( p_id
    , p_rownum
      var l_tr;    // TABLE.TR
      var l_td;    // TABLE.TR.TD
      if (true) {
        l_tr = vd_getRow(p_id, p_rownum);
        l_tr.onmouseover = null;
        l_tr.onmouseout  = null;
        for (var i=0; i<l_tr.cells.length; i++) {
          l_td = l_tr.cells;
    l_td.style.backgroundColor = '#DDDDDD';
    } // -- eof ex_conditional_tr() -- //
    var g_DEBUG = false;
    var g_TBODY = null;
    // Liefert das Body-Element der Tabelle mit der ID <p_id>.
    // Parameter
    // p_id - die Id der HTML-Tabelle
    // Return
    // das Body-Element oder NULL, wenn die Zeile nicht gefunden wurde
    function vd_getBody
    ( p_id
    if (g_TBODY == null) {
    var l_table = null;
    l_table = document.getElementById( p_id );
    if (l_table == null) {
    l_table = document.getElementByName( p_id );
    if (l_table != null) {
    if (vd_debug()) {
    alert("Tabelle gefunden, " + l_table.nodeName);
    g_TBODY = vd_search( l_table, 'TD', 't10data', 'TBODY');
    return g_TBODY;
    } // -- eof vd_getBody() -- //
    // Liefert die Zeile <p_rownum> der HTML-Tabelle mit der Id <p_id>.
    // Parameter
    // p_id - die Id der HTML-Tabelle
    // p_rownum - die Zeilennummer
    // Return
    // die Zeile oder NULL, wenn die Zeile nicht gefunden wurde
    function vd_getRow
    ( p_id
    , p_rownum
    var l_body = vd_getBody(p_id);
    if ( l_body != null
    && l_body.nodeName == 'TBODY'
    && l_body.children[p_rownum].nodeName == 'TR') {
    return l_body.children[p_rownum];
    else {
    return null;
    } // -- eof vd_getRow() -- //
    // Liefert die Spalte <p_column> der Zeile <p_rownum> der HTML-Tabelle mit der
    // Id <p_id>.
    // Parameter
    // p_id - die Id der HTML-Tabelle
    // p_rownum - die Zeilennummer
    // p_column - der Index der Spalte / Zelle
    // Return
    // die Zelle oder NULL, wenn die Zelle nicht gefunden wurde
    function vd_getColumn
    ( p_id
    , p_rownum
    , p_column
    var l_tr = vd_getRow(p_id, p_rownum);
    if ( l_tr != null
    && l_tr.nodeName == 'TR'
    && l_tr.children.length >= p_column
    && l_tr.children[p_column].nodeName == 'TD') {
    return l_tr.children[p_column];
    else {
    return null;
    } // -- eof vd_getColumn() -- //
    // Rekursives Suchen nach einem Node.
    // Zweck: Das bedingte Formatieren einer Tabellenzelle in einem Apex Standard
    // SQL-Report.
    // Diese Funktion durchsucht rekursiv, ab einem Ausgangsknoten <p_node>, alle
    // darunter befindlichen Elemente, ob in dem Element <p_seachIn> sich die
    // Klasse <p_class> befindet.
    // Bei Standard-Reports ist die Reportzelle (TD) mit der Klasse
    // "t10data" formatiert.
    // Zunächst muss dazu die Tabellenzelle (TD) selbst, die übergeordnete
    // Tabellenzeile (TR), der Tabellenbody (TBODY) oder die Tabelle (TABLE)
    // selbst ermittelt werden.
    // Der Beispielaufruf:
    // var l_body;
    // var l_node = document.getElementById( 'R112233' );
    // l_body = search( l_node, 'TD', 't10data', 'TBODY');
    // durchsucht also das mit der Id "R112233" versehene Element [der Report, für
    // den in Apex eine statischen ID vergeben werden musste] rekursiv, bis er
    // die [erste] Tabellenzelle "TD" findet, die als Klasse "t10data"
    // definiert hat. Für diese ermittelt er dann das übergeordnete TBODY-Element.
    // Parameter
    // p_node - das Ausgangselement
    // p_searchIn - der Knotenname, der durchsucht werden soll
    // [node.nodeName == p_searchIn]
    // p_class - der Name der CSS Klasse
    // [node.classList[<index>] == p_class
    // p_parentName - der Name [node.parentNode.nodeName == p_parentName]
    // des Elements, das zurückgeliefert werden soll. Wird als
    // p_parentName der Suchname p_searchIn angegeben, wird
    // das Element selbst zurückgegeben.
    // Return
    // das per p_parentName gesuchte Element (TD, TR, TBODY, TABLE)
    function vd_search
    ( p_node
    , p_searchIn
    , p_class
    , p_parentName
    var LN = "vd_search";
    var l_element = null;
    // DEBUG
    if (vd_debug()) {
    alert(LN + ":" + "Untersuche " + p_node.nodeName + ", id=" + p_node.id);
    // 1) der aktuelle Knoten ist der, der durchsucht werden soll
    if (p_node.nodeName == p_searchIn) {
    if (p_node.classList.length > 0) {
    for(var c=0; c<p_node.classList.length; c++) {
    if (p_node.classList[c] == p_class) {
    // Parent Node dynmisch suchen
    l_node = p_node;
    if (l_node.nodeName == p_parentName) {
    return l_node;
    while(l_node != null && l_node.parentNode != null) {
    if (l_node.parentNode.nodeName == p_parentName) {
    return l_node.parentNode;
    else {
    l_node = l_node.parentNode;
    // 2) wenn nicht 1) oder nicht in 1) gefunden, dann in den Kindelementen
    // weitersuchen
    if (p_node.children.length > 0) {
    var i = 0;
    while (i<p_node.children.length && l_element==null) {
    l_element = vd_search( p_node.children[i], p_searchIn, p_class, p_parentName);
    i++;
    return l_element;
    } // -- eof vd_search() -- //
    // Gibt an, ob Debug ein- (true) oder ausgeschaltet (false) ist.
    // Return
    // true - debug ist eingeschaltet
    // false - debug ist ausgeschaltet
    function vd_debug()
    return g_DEBUG;
    -->
    </script>
    Maybe you have to modify the "vd_getBody" function. I'm searching the table cell with having the class "t10data". When you use another theme, there's maybe another class used.
    Second is, that you set an static id for your report region. I prefer this structure:
    R<app-id><page-id><seq> (Raaaaappppsss) e.g. R094260001010.
    First example is to turn off the onMouse-Effect. Maybe on the first or last column definition you put this code in the "HTML-Expression" area:
    <script>ex_conditional_tr('R094260001010', #ROWNUM#);</script>#ID#This will call the example function ex_conditional_tr with the parameter
    a) the region id
    b) the rownum (as oracle always starts with 1 this is the first data row [rownum=0 is the table header row])
    Second example is the conditional formatting of a table cell. Put this in the HML-Expression area:
    <script>ex_conditional_td('R094260001010', #ROWNUM#, #COLNUM#-1);</script>#ENAME#This will call the example function ex_conditional_tr with the parameter
    a) the region id
    b) the rownum
    c) the cellnum (here we have to subtract 1 to get the "real" cell index)
    The "ex_conditional" functions are just a representation of how to get the row or cell node.
    Hope this help a bit.
    Tom

    I would use a CASE statement in the select....
    each CASE would be an img src tag for a different button if the button is an image.
    does that make sense? I can include an example if you would like...

  • Apex 4.2 Report region sql query with "apex_item.text" renders wrongly

    In APEX 4.2 page i have created region "Report data".
    Type="SQl Query".
    "User Interface"-->"Template"="Reports Region".
    "Region Source"="select apex_item.text(1, '111') as c1 from dual".
    Actually the select query is little bit more complex, but generally simplified it is such, that it uses function "select apex_item.text" to construct HTML textfield.
    If i run in Sql Developer query
    select apex_item.text(1, '111') as c1 from dual;Then result is:
    <input type="text" name="f01" size="20" maxlength="2000" value="111"  />But in APEX 4.2 the report is rendered so:
    <td  headers="c1">&lt ;input type=&quot ;text&quot ; name=&quot;f01&quot; size=&quot;20&quot; maxlength=&quot;2000&quot; value=&quot;111&quot;  /&gt ;</td>(for this forum to display correctly i had to put extra spaces between" &gt" and ";" and so on)
    And APEX 4.2 shows ugly html inside report cell/slot for me, displaying characters/symbols ">". The reason is that APEX HTML page source does not have symbol ">" but has " &gt ;" .
    In APEX 3 i have similar query working well, without such anomaly.
    What attribute should i change in APEX 4.2 region to display my query result as needed?
    I need that function "apex_item.text", i cannot remove it.
    Edited by: CharlesRoos on 13.02.2013 15:28
    Edited by: CharlesRoos on 13.02.2013 15:29
    Edited by: CharlesRoos on 13.02.2013 15:29

    CharlesRoos wrote:
    In APEX 4.2 page i have created region "Report data".
    Type="SQl Query".
    "User Interface"-->"Template"="Reports Region".
    "Region Source"="select apex_item.text(1, '111') as c1 from dual".
    Actually the select query is little bit more complex, but generally simplified it is such, that it uses function "select apex_item.text" to construct HTML textfield.
    If i run in Sql Developer query
    select apex_item.text(1, '111') as c1 from dual;Then result is:
    <input type="text" name="f01" size="20" maxlength="2000" value="111"  />But in APEX 4.2 the report is rendered so:
    <td  headers="c1">&lt ;input type=&quot ;text&quot ; name="f01" size="20" maxlength="2000" value="111"  /&gt ;</td>(for this forum to display correctly i had to put extra spaces between" &gt" and ";" and so on)
    And APEX 4.2 shows ugly html inside report cell/slot for me, displaying characters/symbols ">". The reason is that APEX HTML page source does not have symbol ">" but has " &gt ;" .
    In APEX 3 i have similar query working well, without such anomaly.
    What attribute should i change in APEX 4.2 region to display my query result as needed?Ensure that the Display As Column Attribute for the C1 column is Standard Report Column.

Maybe you are looking for

  • IPod touch promotion

    So a few months back I purchased a new 17" Mac Book Pro through the online apple store because I needed a computer for school. At the time there was a promotion through apple that promised with any purchase of a laptop for school, the buyer would rec

  • I would like to cancel my icloud. I am within the 15days trial

    I recently bought icloud storage on my iPhone but I realize that I do not really need it so I would like my money back.  I am within the 15 day trial period.  I really appreciate trying it out.  Thank you for your time and help. lg2

  • RAC re-install error

    I have deleted everything in app/crs and app/oracle after uninstalling it throgh installer. But when i try to install the clusteware it gives the following error: Checking local Cluster Synchronization Services (CSS) status Error In details it says o

  • Fix(es) for error code 2738

    I cannot take any credit for any of the answers found in here, all I am taking credit for is putting them both in this one space Ok here goes, when trying to install Q'time (or other Apple products) do you get this type of message? The installer has

  • Restoring controlfile from rman

    Hi Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 on OEL4 I have lost all the control files (infact deleted knowingly to simulate ). i have a full database backup in recovery catalog. I do not know the dbid of database. I am not able to co