Changing Report Template Dinamicaly

Hello everybody, I am starting in APEX and I need to change "Report Template" attribute in a classic report programmaticaly. I need to generate a classic report for screen and in CSV format, but obviously I dont want to make 2 reports.
Thanks a lot
Ander

Of course.
I make a primary form with two buttons ("Print Preview" and "Excel Output", for example). In this form I make every filter selection (ranges, orders, etc).
My final report have a "CSV Template" assigned, I call it from "Print Preview" button using "Printer Friendly" parameter in YES, and without this parameter for the "Excel Output" button. You can improve this method creating another button (called"Direct Print" for example) for direct printing and using REQUEST parameter and a popup call for the report, you can include a javascript code in the report like this one:
if (":REQUEST" == "VALUE SENT FOR YOU AS A REQUEST")
window.print();
window.close();
I hope this will be useful.
Ander

Similar Messages

  • Two naive questions: change report templates and customization.

    I searched the forum but didn't have the luck to find the exact answer.
    1) I've chosen the alternating row color template for one of my report, however I wanted to change it to another template, say standard. Is it possible, and where I may find the place to change?
    2) Is there a tutorial of how to customize the row color depends upon the value dynamically? Like an OBE. An elaborated example will be great!
    Thanks in advance.

    Radhika,
    Thanks for the info. Unfortunately, based on this statement from the one link:
    "Several macros in Sun ONE Studio IDE cannot be edited (for example, DATE, TIME, NAME of class, PACKAGE, etc.)."
    It would appear there is no way to alter the timestamp format.
    The question still remains of is there a way to access the year for a copyright stamp? If anyone else has any input, it would be appreciated.
    Thanks again Radhika for your assistance.
    -Mark

  • Report template auto-changed to Default: HTML

    I use the builtin report template "Default: Look 4" for all of my report screens and have a problem when importing the application with a new Application ID.
    All reports that use the "Default: Look 4" template get changed to "Default HTML" in the new application and I have to manually change them all back again. This is a real pain because I use the application ID as a form of version control - the old versions of the application are auto-forwarded to the new one - so I end up having to do the change quite often.
    Is there a way I can prevent the template from changing?

    If it's any help to you, I did a bit of 'vanilla' testing ...
    - create a new workspace TEST
    - Edit Page 1 of the Sample Application
    - Note that the region "My Top Orders" is using layout "template: 12. Standard, Alternating Row Colors"
    - export the Sample Application
    - import the Sample App with Auto-Assign New App ID selected
    - Edit Page 1 in the new application and note that the region template for "My Top Orders" is still set to "template: 12. Standard, Alternating Row Colors"
    - Change the template for "My Top Orders" to "default: Look 4"
    - Export application
    - Import application with auto-assigned AppID
    - Edit "My Top Orders" and note that template is changed to "default: HTML (standard)"
    The template is only changed when the exported application uses one of the "default: Look X" templates, other templates are not changed. Also, importing into the same or different application makes no difference, the template is still changed.
    Thanks for your quick reply so far Scott!

  • 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

  • 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                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Custom report templates with the help of BI Publisher.

    Hi All,
    I have created custom report templates with the help of BI Publisher it is working as we excepted.
    refered : https://blogs.oracle.com/kyle/tags/reports
    But our requirement want to change the color of heading and include filters in output report, It is possible, if yes pls share you comments?
    Best Regards
    Pradeep

    how silly of me!
    just restarting the tomcat sorted the problem!!!

  • #REGION_STATIC_ID# does not work in report template for PPR

    I was hoping to use the new substitution string #REGION_STATIC_ID# for a PPR report, because when we do Export/Import of the app the Region ID changes and we have to manually change the Pager Header Javascript to get the PPR to work. A real pain.
    So I changed the Region template to use #REGION_STATIC_ID# and set the Static id in the region definition - this worked fine. Next, I modified the Report template for PPR to use #REGION_STATIC_ID#, but at runtime this resolves to a blank! I assumed it would pick up the static ID for the region it was in. Is this a bug or am I just not understanding the way it is supposed to work?
    Regards,
    Steve

    Hello,
    #REGION_STATIC_ID# is available in some places in the report template. But the PPR javascript uses the APEX engine created ID get into the fast track report engine so it's not going to work that way.
    But you can still do what you want to do what you want to do. Use the #REGION_STATIC_ID# in your region say something like this #REGION_STATIC_ID#_body the use the javascript to get that element and then use that element
    along with getElementsByClass(searchClass,node,tag)
    http://apex.oracle.com/pls/otn/f?p=38704:2:::NO::P2_ID1:22
    to grab the report table and then it's ID which you can then feed into your javascript. It will only be 2-3 more lines of javascript.
    Carl

  • Report template enhancement? no data found message

    I have a layout in which I want to show the excel export link in the same html table as a logo, so that code needs to be placed in the report template, but when no data is found I still want to show the logo and so all my reports have the same html code in the "no data found" field. Whenever I want to change this I have to change my template as well as all of my reports.
    Wouldn't it be a nice idea to provide for a "no data found" message in the report template instead of the report itself? I can imagine you would want to show the same "no data found" message anyway for all reports so the template would be a logical place to put this.

    There are known issues with Interactive Reports referencing :REQUEST value, probably due to some inner logic that also handles it simultaneously - potentially causing malfunction or deadlocks.
    One workaround I've learned is to create a computation to assign :REQUEST to a temporary item (a PXX_REQUEST, for instance) and reference it in the query, instead of :REQUEST. This has worked fine for me in my experience.
    Let me know if that helps - pls sign the thread as 'Useful' or 'Correct' if so, hence more people can benefit.
    tks,
    Kleber

  • 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

  • Report Template, Column Template, Column Template Condition

    I have a template, Standard Revenue from Standard, I have cloned for a Classic report.
    Application ###>Shared Componets>Templates>Edit Report Template
    Column Template 1 looks like:
    <td#ALIGNMENT# headers="#COLUMN_HEADER_NAME#" class="t1data_revenue">#COLUMN_VALUE#</td>
    I have set Column Template 1 Condition to:
    "Use based on PL/SQL expresiion"
    I have tried several expression in "Column Template 1 Expression" - last one is:
    case
    when #COLNUM# <= 2 then false
    when #COLUMN_VALUE# < 0 then true
    else false
    end case;
    I am trying to use the value in "Column Template 2" when to value of the #COLUMN_VALUE# < 0
    where "Column Template 2" is :
    <td#ALIGNMENT# headers="#COLUMN_HEADER_NAME#" class="t1data_revenue_negative">#COLUMN_VALUE#</td>
    I get the following error when I run the page:
    ORA-01403: no data found
    and
    ERR-1025 Error processing PLSQL expression. case when #COLNUM# <= 2 then false when #COLUMN_VALUE# < 0 then true else false end case;
    Any help will be appreciated.
    thank you,
    jwm

    Hi,
    That's actually easier. See: [http://apex.oracle.com/pls/otn/f?p=267:60]
    The SQL for both reports is:
    SELECT EMPNO, ENAME, NVL(SAL,0) SAL, NVL(COMM,0) COMM
    FROM EMP
    ORDER BY EMPNOThe SAL and COMM columns have been formatted using:
    999G999G999G999G990D00For the Row Template, the Row Template 1 setting contains an empty space (you have to have something in there otherwise Apex adds back in a default row containing five cells!). The condition for this is:
    TO_NUMBER('#COMM#','999G999G999G999G990D00') < 100The template will see the data as a string, so we use the same number format to convert that string back into a number and compare this to 100. If we didn't use formatting on the numbers and we are sure that every row contained a number (hence the use of NVL()), then you could use:
    #COMM# < 100Row Template 2 contains the format for the rows that need displaying:
    &lt;tr&gt;
    &lt;td class="t18Data"&gt;#1#&lt;/td&gt;
    &lt;td class="t18Data"&gt;#2#&lt;/td&gt;
    &lt;td class="t18Data" style="text-align:right"&gt;#3#&lt;/td&gt;
    &lt;td class="t18Data" style="text-align:right"&gt;#4#&lt;/td&gt;
    &lt;/tr&gt;and is unconditional.
    The only other settings on the Row Template are the Before Rows:
    &lt;table class="t18Standard" style="border-collapse:collapse; border:1px solid black;"&gt;
    &lt;tr&gt;
      &lt;th class="t18ReportHeader"&gt;Empno&lt;/th&gt;
      &lt;th class="t18ReportHeader"&gt;Ename&lt;/th&gt;
      &lt;th class="t18ReportHeader" style="text-align:right"&gt;Sal&lt;/th&gt;
      &lt;th class="t18ReportHeader" style="text-align:right"&gt;Comm&lt;/th&gt;
    &lt;/tr&gt;and After Rows:
    &lt;/table&gt;Of course, you will note that the record counters at the bottom still show the number of records in both reports - as the SQL still outputs the same data, this doesn't change.
    Andy

  • Report Template Background

    Hello all,
    Is there a way to change the background color of a report template? I have a CSS box behind the whole report area but I want each report area to have a lighter color behind it so they stand out more.

    Hello,
    If you can put a quick example on apex.oracle.com it will be much easier to figure out the css snippet you need.
    Look and feel issues / adjustments are usually easier when you/I/we can see them ;)
    You can also use Firebug http://www.getfirebug.com/ to inspect the page source and figure it out pretty quickly as well, that's exactly what I will do when you put up th example.
    Regards,
    Carl
    blog : http://carlback.blogspot.com/
    apex examples : http://apex.oracle.com/pls/otn/f?p=11933:5

  • Report Template driven by custom functions

    Hello,
    I'm a newbie, and i'm trying to design a report template driven by a vw and/or stored proc to display information on a letterhead report.  Such as names that can change at any time.  I have another interface linked to the vw/sp to change that information at any time.  What i'm trying to get is the idea of how to create a template letterhead report that i don't have to go back into crystal to change whenever the administration name changes. 
    Does anybody have any ideas or examples?  I'm thinking Custom Functions are the way to go but, i just don't know how to get started with using them if that's the way to go. 
    Thanks in advance!

    Please re-post if this is still an issue

  • Report Template: "default: Look 5"

    Hi All,
    Is it possible to create new report template, derived from "default: Look 5" in HTMLDB 2.0?
    I need to customized this report template.
    Thank you.
    Regards,
    guntur

    I want to do this also. I like the mouseover highlite feature, but would like to change the color from gray to yellow. I haven't had good luck with creating
    report templates from scratch either.
    SKY

  • Report Template -  NULL in Row Template Condition

    I just found a workaround, but,
    in a report template, in a Row Template # Condition, based on a PL/SQL expression, the condition always fails if/when #COLUMN_VALUE# was NULL.
    I worked around this with a NVL in the query - but, is there a better way?
    I want the column highlighted when the value is null - to point out where values need to be entered - i.e. when the record needs to be updated.
    THanks - Karen

    Ok, I have since found out that the setting to make a report template
    available in the Based on > Visualization templates is in the
    'package.xml' file for each report. The value that needs to be changed
    is <IsQueryParameterized>0</IsQueryParameterized> and change the 0 to 1.
    kmcooke1
    kmcooke1's Profile: https://forums.netiq.com/member.php?userid=5806
    View this thread: https://forums.netiq.com/showthread.php?t=49091

Maybe you are looking for

  • Since I downloaded the last update even the artwork in the itunes store doesn't display how do I get it back?

    SInce the last update none of the artwork in iTunes, even in the iTunes store, is displayed just empty grey boxes, anybody else have this problem?

  • Higtogram calculation

    Hello Experts, I am reading a white paper about CBO statistics the link is here. http://www.oracle.com/technetwork/database/focus-areas/bi-datawarehousing/twp-optimizer-stats-concepts-110711-1354477. In the part of Frequency Histograms, in number 4.

  • Profit and Loss statment PLD

    Dear All I SAP Profit and loss statment PLS below sequence , want to change sequence of 3 and 4 in pld report 1-Turn Over 2-Cost Of Sale 3-Gross Proft - 4-Operation Cost - 5-NON-Operation Cost 6-Profit Period But i want to change sequence as user req

  • What subscription do I need to just fill out PDF ?

    All I need is to be able to fill out forms using Acrobat. What is the cheapest subscription I can get to do so?

  • No sound on my macbook pro retina

    I bought a macbook pro with retina display yesteray, 8gb RAM and 128gd hd. The sound stopped working yesterday after unplugging my headphones, I updated the software to the OSX 10.9.1 and it worked again. It was working fine thiis morning but after t