HTML tags visible in the downloaded Excel report

Hello
I have an interactive report, which uses a CASE statement with span tags conditionally color a date column. Unfortunately, when users download the report to Excel or PDF, the span tags are displayed in the report. Is there an easy way to avoid/work around this?

Thank you

Mike

Published by: Mike, UK on March 1st, 2011 11:40

Don't worry - my old firm stuck with Apex 1.6!

The SQL code for the report is:

SELECT EMPNO, ENAME, HIREDATE,
CASE WHEN EXTRACT(YEAR FROM HIREDATE) >= 2009 THEN 'hilite' ELSE 'lolite' END CLASSNAME
FROM EMP

You must use the "hilite" and "lolite" that each value will get a class attribute

All columns are set to "Standard report column", with the exception of CLASSNAME which is set to 'Hidden '.

The HIREDATE column has the following parameters:

Text link: #HIREDATE #.
Link attributes: class = "" #CLASSNAME # ""
Target: page in the present application
Page: 241 (IE, the current page)

However, you can play with two final settings, if you wish

Header HTML of the page attribute setting:

<style type="text/css">
.hilite {background-color:red!important; color:yellow!important;}
.lolite {color:black!important;}
.hilite:link, hilite:visited, hilite:hover, hilite:active {background-color:red!important; color:yellow!important; text-decoration:none!important;}
.lolite:link, lolite:visited, lolite:hover, lolite:active {text-decoration:none!important; color:black!important;}
#CLASSNAME {display:none;}
td[headers="CLASSNAME"] {display:none;}
</style>

This creates just the highlighting comb a link for each value of the hiring date. Tag STYLE settings, just make sure that the link doesn't look like a link.

I'm sure there is much that could be done to make it a bit neater, but it should give you some ideas!

Andy

Tags: Database

Similar Questions

  • Remove the download interactive report HTML

    I have interactive reports where the link in the column on a specific column must be dynamic, which means, that it can not be hard coded in the column binding attributes. Here is an example of such a report query:
    case when d.object_type_description ='Business Service' then
    '< href="f?p='||:app_id||':183:'||:app_session||'::::P183_OBJECT_ID:'||d.id||'">'||d.object_name||'</>'
    
    when d.object_type_description = 'Real Time Event' then
    '< href="f?p='||:app_id||':162:'||:app_session||'::::P162_OBJECT_ID:'||d.id||'">'||d.object_name||'</>'
    else 
       null
    end as "OBJECT NAME"
    As see you in the above example, the link in the "Object name" column could be redirect page 183 or on page 162, based on the column "Description of object Type.

    The column 'Object name' attribute has 'Type display"the value"Standard report column. This works perfectly well in the UI of the report. However, if I download the IR data (in any format) since the Actions-> download menu, the object name column values are downloaded with HTML characters such as:
    < href="f?p=15548:183:6072319179284::::P183_OBJECT_ID:255245470513999672860510787772603748464">JP010000</>
    where JP010000 is the name of the object.

    Is there a way I can strip the HTML code of the column values in the downloaded files?

    I use Apex 4.1.

    Rohit,

    You can set the query link, make hidden, use the value in the link URL column. Thus, your query will look like the following:

    d.object_name,
    case when d.object_type_description ='Business Service' then
        'f?p='||:app_id||':183:'||:app_session||'::::P183_OBJECT_ID:'||d.id
    when d.object_type_description = 'Real Time Event' then
        'f?p='||:app_id||':162:'||:app_session||'::::P162_OBJECT_ID:'||d.id
    else
       null
    end link
    

    Change the display type of the LINK column hidden. In the column link, enter #OBJECT_NAME # as the link text. Select the target URL. Enter #LINK # as the value of the URL. APEX 4.2, you can do this more easily by setting the HTML column Expression.

    Kind regards
    Christina

    Published by: cbcho on 27 Sep 2012 11:35

  • Answers-download Excel report to loose the zeros

    Hello!
    When I download answers report to Excle (Word) I lose the zeros.
    1.2500 -> 1.25
    The zeros are important and I would like to than this format as it is in the OBI in all types of download (Excel, Word etc.).

    When I export to PDF (cross from Oracle BI publisher) zeros are correct.

    Any help please.

    My config, OBI on Windows 2003 32-bit:
    Product Information
    Oracle Business Intelligence Product Version     10.1.3.4 (Build 080726.1900)
    Physical Presentation Catalog Path     \\?\C:\OracleBIData\web\catalog\teb\root
    Oracle BI Server Data Source     AnalyticsWeb
    Available Paging Memory (MB)     5176
    Available Virtual Address Space (MB)     1833

    Hello

    You can try adding the following statement in the section custom CSS, column properties:
    "" mso-number-format-@:

    See a preview here:
    http://i53.Tinypic.com/a09kqv.jpg

    This will process the data in the column as a text for download to Excel, conserving spaces beginning or end.

    Thank you

  • Manage the download IR report link

    Hello

    I use Apex 4.1.1 and Oracle 11g DB.

    I use under sql query in an interactive report. Now the question is why we download the report to csv format via the Actions button we get the data of any link.

    select
    '<a HREF="f?p=&APP_ID.:2:&SESSION.::::P2_ID:'
      ||ID
      ||'"><img src="#IMAGE_PREFIX#edit.gif" alt=""></a>' "Edit",
    column1,
    column2
    from tablename
    where column1 = 'abc'
    union
    select
    '<a HREF="f?p=&APP_ID.:3:&SESSION.::::P3_ID:'
      ||ID
      ||'"><img src="#IMAGE_PREFIX#edit.gif" alt=""></a>' "Edit",
    column1,
    column2
    from tablename
    where column1 = 'xyz'
    ;
    
    

    The downloaded csv file is in the format below

    Column1Column2
    < a HREF = "f? "p = 112:2:1421459908384901:P2_ID:1" > < img src="/i/edit.gif" alt = "" > < / a >ABC1
    < a HREF = "f? "p = 112:3:1421459908384901:P3_ID:2" > < img src="/i/edit.gif" alt = "" > < / a >XYZ2

    Now my problem is that I don't want to download the first column (the column link) that is, the downloaded csv file should have only column1 and column2. Can someone help me with this.

    Thanks in advance

    Thank you

    Shoaib

    Hello

    Change the column attributes and condition ask is NOT contained in set Expression 1.

    Enter the Expression 1

    CSV,XLS,PDF,RTF,XML,HTMLD,EMAIL
    

    Kind regards

    Jari

  • Lack of visibility of the download link

    Before I got demoted to the FF40, I could hover over a link and the gray bar above the task bar would show what was the link. He could also tell me which was being downloaded. Now, I can't say that a link is really, do not know what is the download, or how long it takes. (There also used to be a thin green line at the top that showed progress, but not what is happening.) I really want to know what are the links, and how they will.

    This should help,

    Download status bar {web link}
    If you're the kind of person who likes to have total control
    on all aspects of your downloads.
    "Download" in the status bar is the add-on you are looking for.

  • Rename the download interactive report action

    I'm 5 APEX site apex.oracle.com

    ....

    I need to rename

    action > > download to export files > > file types

    in the interactive report

    as we in the image below

    Hello

    Those who are transltable of the APEXIR_ACTIONS and APEXIR_DOWNLOAD messages

    https://docs.Oracle.com/CD/E59726_01/doc.50/e39147/global_messages.htm#BABEGGHA

    Add those to your SMS application and specify the text that you need

    Kind regards
    Jari

  • &lt; Head &gt; HTML text visible on the browser window?  Why?

    Hello.  Is there a setting or a switch that can be turned off when using the properties of the Page. Metadata with content to be included in the HTML code of the < head > box?

    For some reason, the text that is entered in this field is visible on my web browser when I publish the page.  This doesn't have to be visible by design unless I'm missing something.

    Any idea would be appreciated.

    Hello

    This should not happen, unless the HTML codeyou have added is not valid (a beacon badly closed, for example).

    Could you post the URL of the site and/or of theHTML you added?

    Thank you

    Abhishek

  • Remove the HTML tag to convert the site in CSS

    My site use any CSS and I need to change that. Is there a quick way to remove all the HTML code but leave in the links? I can copy the text via a browser, but I lost all the links to the images.

    Thank you

    "align" isn't a tag - it is an attribute. As I suspected, your best bet is
    to start again.

    --
    Murray - ICQ 71997575
    Adobe Community Expert
    (If you * MUST * write me, don't don't LAUGH when you do!)
    ==================
    http://www.projectseven.com/go - DW FAQs, tutorials & resources
    http://www.dwfaq.com - DW FAQs, tutorials & resources
    ==================

    "bastiat" wrote in message
    News:gefeta$6LL$1@forums. Macromedia.com...
    > I can't get this to work with the tag "align".

  • Captivate 7 - visibility of the Server internal reports dialog box

    Hi all

    I noticed that in 7 captivate the learner has more need to click on the 'Post result' button in order to display the dialog box in which they type their name and e-mail address to and then click Send. This dialog box appears automatically as soon as the learner's test results page.

    I really like this as a feature, but now I don't want to show this dialog box if the learner has failed the quiz. I tried implementing a "Quiz Impossible" slide and setting a conditional action when entering Test slide to move to the Quiz results could not drag if the CpQuizInfoPassFail variable is 0-, but this doesn't seem to work.

    Someone else has an idea on how this can be achieved.

    Thank you

    Rick

    OK, finally I got a workaround for this solution! It seems that Captivate all is not like using the variable CpQuizInfoPassFail in the slide of the Test result.

    So I created a user variable called PassOrFail. Then added a normal slide (no quiz) buffer and positioned between the last question and slides of the Test result. For action on enter the slide of buffer, I have a tip action - 'Assign PassOrFail with CpQuizInfoPassFail' and 'go to the next slide.

    Action on enter for the slide of test results is an advanced conditional action... "IF PassOrFail is equal to false, jump to slide... ('you don't have the test' slide). Captivate seems to prefer it much more and then actually jump to the slide.

  • How to change the order of the download options according to our convience in obiee

    Hi reading,.

    How can I change the order of the download options in the obiee dashboard?

    as if you press the download option you see

    Download Excel
    Download Excel 2000
    Download the data
    Download webpage (mhtml)

    How to change this order. ???

    Download options are installed in OracleBI\web\msgdb\messages\viewscontrolmessages.xml
    -Search the tag ** which contains the download links in the hyperlink tag
    -Each hyperlink tag is a download option
    -To reorganize as you require.
    -The text that is displayed as a link can also be customized by changing the entry for a message like kmsgEVCLinkDownloadExcel in the OracleBI\web\msgdb\l_en\messages\viewmessages.xml [customization is local specific]
    -Restart the presentation server

  • Download disappears from the download window after completion

    When I download a file from the internet in Firfeox, download window stays open as soon as the download is finished, but the file name disappears from the window. In previous versions of Firefox downloaded file would remain visible in the download window after download was complete and I could simply click on the download window and open it. Now, because it disappears from the download window, I have to open Windows Explorer and navigate to the folder that contains the newly downloaded file to open it, which is a pain. I activated the "remember my browsing and download history ' in the options as suggested in the previous answers to this question on the forum, but this makes no difference. Is it possible to make Firefox display the file in the download window after uploading?
    Thank you gas

    You are welcome

  • Download Excel with APEX listener 1.1.4

    Hello

    Just installed the listener APEX 1.1.4 on windows/glassfish and attached the download excel (without success).
    I followed the instructions in the blog of Kris.

    It should not work on 1.1.4?

    Also: I find nothing in the install doc.

    Brgds
    Martin

    Hi Martin,

    the feature is undocumented and not officially supported for 1.1, but known to work for Excel files in the 2003 format. XLSX (from 2007) is not implemented.
    Maybe through the discussion and examples in {: identifier of the thread = 2342792} helps you solve your problem.

    -Udo

  • I moved a html file and now the page doesn't have a background

    I tried to delete my web pages HTML tags and followed the advice on this last post. I created a new folder in the Dreamweaver file tab, then flies over the .html file and renamed him index.html. Unfortunately swf images and the background are broken and cannot refer to them. I wonder what I missed the step, or how I can link them?

    How to remove .html link discussion I've referenced original.

    http://forums.Adobe.com/message/722731#722731

    I wanted to try to use .htaccess with my current account to GoDaddy, but I couldn't get this to work properly.

    http://simplemediacode.info/remove-index-HTML-andor-index-PHP-from-the-URL/

    Blank page of my Web site.

    http://www.victorylcms.org/testimonials/

    Thanks for any help!

    You have wrong paths to all your CSS and external Scripts. In general when you move a file in a folder in the files Panel, DW will ask if you want to update the links.  You must have reach YES.

    To resolve this problem, change all this in your code:

    style. CSS"rel ="stylesheet"type ="text/css"/ >

    Layout.CSS"rel ="stylesheet"type ="text/css"/ >

    to do this:

    style. CSS"rel ="stylesheet"type ="text/css"/ >

    .. "" / layout.css "rel ="stylesheet"type ="text/css"/ >

    Nancy O.

  • Internal dynamic text formatting using HTML tags in As3... Help!

    I'm for a solution of navigation for about 2 hours, but I can't find anything that could help. I have a dynamic text field, and I want to format it, (to highlight the first 2 words in red and the rest in italics). Usually, I load external .txt files and I use HTML tags to format the text inside. But this time I have to do internally.

    Is it possible to do?

    Kind regards!

    You mean you want to format your text in the textfield with html like tags for example this one?

    yourtextfield. htmlText = "Hello it!"

    This underlines the 'Hello' and bolden ' here! You can add the css inline style too to add the colors of the background also.

  • After the upgrade to IE 10, not able to download/export users excellent reports in Oracle EBS 12.0.6 forms order orgranizer

    After the upgrade to IE 10, not able to download/export users excellent reports in Oracle EBS 12.0.6 forms order orgranizer. It of something to do with the settings of internet explore, please advise to solve this problem.

    The new window opens and immediately disappears.

    Thanks for your replies.

    We can get the exported file now. In IE 10, all results export are saved temporarily in the download options, press Ctrl + J (view downloads) and save the results and open it.

Maybe you are looking for