Interactive Report Download - filenames always in lower case
I've written an interactive report in Apex v4.0.2 and have set the CSV download option to use a filename of "One_Two_Three" (note the capitalization).
However when the CSV file is generated, the filename is "one_two_three" - all in lower case. I've tried using substitution variables in the filename and this doesn't make any difference.
Is there a way to stop conversion to lowercase ? Is it possible to intercept or override something to allow even greater control the filename ?
thanks
Andy
Well, found some answers after some more trial and error.
1.) Country settings messed up my csv format. After changing the default column separator in the report attributes, things now look as expected.
2.) One can rather easily suppress the format signs by using the sql replace functionality, e.g.
SELECT REPLACE (my_column, CHR(10),' ') FROM my_table
And it is actually quite a difference if you use text area or rich text fields when it comes to the usage of the breaks.
Cheers,
Martin
Similar Messages
-
Interactive Report - Download as csv
Hi,
I am using apex 4.0.2.00.07 on IE8 with theme Traditional Blue. I have a problem with the inbuild download functionality of an interactive report. One field is of type varchar2 and I allow line breaks in the underlying edit screen.
I simply do not find a way to handle this formatting in the export to csv. The data is always completely shredded. An example:
Input form:
Name (text field):
Bob
Address (text area):
Street(<linebreak>)
City
IReport SQL: select NAME, ADDRESS from USERS
In the IR form it will show as
Name || Address
Bob || Street City
An export to csv will make this to
Name,"Address"
Bob,"Street
City"
I have tried all settings of the report attribute 'Display Type' for field Address, but it will always be the same in the IR and always the same in the export. How do I ensure that the whole content of a table field is displayed as one value in the csv, with no regards to potentially present field formatting, e.g. in my case:
Name,"Address"
Bob,"Street City"
And if we are already at it: I have seen that some plugins for an export to excel exist. Would that recognise the formatted text and place it in one cell or would I face the same issue here, i.e. the field value being split over several cells?
Thanks a lot,
MartinWell, found some answers after some more trial and error.
1.) Country settings messed up my csv format. After changing the default column separator in the report attributes, things now look as expected.
2.) One can rather easily suppress the format signs by using the sql replace functionality, e.g.
SELECT REPLACE (my_column, CHR(10),' ') FROM my_table
And it is actually quite a difference if you use text area or rich text fields when it comes to the usage of the breaks.
Cheers,
Martin -
Remove HTML from Interactive report download
I have interactive reports where the column link on a specific column has to be dynamic, that means, it cannot be hard coded in the column link attributes. The following is an example of one such 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 you see in the above example, the link on the "Object Name" column could either redirect to page 183 or to page 162 based on the "Object Type Description" column.
The column attribute of the "Object Name" column has "Display Type" set to "Standard Report Column". That works perfectly fine in the UI of the report. However, if I download the IR data (in any format) from the Actions -> Download menu, the object name column values are downloaded with the HTML characters as:
< href="f?p=15548:183:6072319179284::::P183_OBJECT_ID:255245470513999672860510787772603748464">JP010000</>where JP010000 is the object name.
Is there a way I can strip the HTML from the column values in the downloaded files?
I am using Apex 4.1.Rohit,
You can define the link in the query, make it hidden, use the value as column link URL. So, 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 linkChange the display type of LINK column to Hidden. In column link, enter #OBJECT_NAME# as Link Text. Select URL as Target. Enter #LINK# as URL value. In APEX 4.2, you can do this in easier way by defining HTML Column Expression.
Regards,
Christina
Edited by: cbcho on Sep 27, 2012 11:35 AM -
Interactive Report Download CSV file Issue (output includes separator BR)
Hi,
I have a Interactive Report and displaying the column values (multiple values in same ROW) as mentioned below.
SQL Query
select deptno,
function1(empno) empno
from emp
IR Output
Dept Employee No
10 AAA,BBB,CCC, ... // - Row 1
20 XXX,YYY,ZZZ, ... // - Row 2 Now I want to display each employee in a new Line, so modified the SQL Query
Modified SQL Query
select deptno,
REPLACE(function1(empno),',','<br>') empno
from emp
New IR Output
Dept Employee No
10 AAA
BBB
CCC
... // - Row 1
20 XXX
YYY
ZZZ
... // - Row 2 SO, Interactive Report Out put looks fine and that's the way we want.
But the problem is when I download the Report in CSV or in PDF using the Action Menu -> Download..
I am getting break line B R in the output, and also I have two different output in CSV for two different column. [Logic is same for both the columns.]
CSV output1
Employee No
AAA<br>BBB<br>CCC
XXX<br>YYY<br>ZZZI have other columns also with multiple values...for that column, I am getting the following CSV output
CSV output2
City List
1111<br>
2222<br>
3333<br>So, in CSV for one column, I am getting all the values in same line with the seperator B R (Output1)
for other column, I am getting values in new line with the separator B R. (Output2)
Is there a way to FIX this CSV or PDF output for Interactive Report.
I DON'T WANT THE SEPARATOR BR in CSV and also the values should always be in New Line.
I want to have the following Output in CSV
Employee No
AAA
BBB
CCCThanks,
Deepak
Edited by: Deepak_J on Feb 24, 2010 11:45 AM
Edited by: Deepak_J on Feb 24, 2010 11:46 AM
Edited by: Deepak_J on Feb 24, 2010 11:48 AMThanks.. Jari.. for the quick response.
I updated my SQL query with Chr(10) and added the code in Page HTML header.
Now the CSV & PDF output are fine..getting each individual value in seperate line (no BR tag)
BUT in the Interactive Report Output, I am now getting first 2 values in 1 line, then next value in next line, and so on..
IR Output
Employee
AAA BBB
CCCCCCC
DDDDDI have few more issues with CSV & PDF output
1. In PDF is there a way to increase the column width, as for some of the columns, the values are getting truncated.
2. For some of the columns in IR Report, I have user BR tag in Column Heading and this also come in CSV output (column heading with BR tag), is there a way to fix this. In PDF Column headings are fine (no BR tag)
and by the way..what exactly this does.
<style type="text/css">
.apexir_WORKSHEET_DATA td{white-space:pre;word-wrap: break-word}
</style>Thanks,
Deepak
Edited by: Deepak_J on Feb 24, 2010 12:20 PM
Edited by: Deepak_J on Feb 24, 2010 12:21 PM -
Interactive report download in PDF - getting an error message
Hi,
while using default feature to download interactive report in PDF format, I am getting following error:
Adobe Reader could not open 'filename.pdf'because it is either not a supported file type or because the file as been damaged ( for example, it was sent as an email attachment and wasn't correctly decoded
please advice
ThanksHi,
Adobe Reader could not open 'filename.pdf'because it is either not a supported file type or because the file as been damaged ( for example, it was sent as an email attachment and wasn't correctly decodedWhen I get this error, I rename the downloaded PDF file to TXT to look into it. Usually there is a human-readable error message in there generated by the web server, Apex or any other party involved in its generation...
But, as pointed out, have you set up Apex to generate PDFs?
Luis -
Interactive Report Download to csv problem
Hi,
I have 2 applications. Both in the same workspace, same APEX version. Within those applications I have Interactive Reports.
When I use the download to CSV (IR) in the first application I get all the available data in my CSV. It ignores the filters that are applied!
The second application does not have this problem. If I have an IR with 10000 rows and I apply a filter to select only a 100 rows and I download, I get my 100 rows in csv.
It's suppose to work as I describe for the second application. I want to download the rows with the filter applied. What could cause this??I had an similar issue. Found out submitting the CSV action was nulling out my filter as viewed in session state. the page item I was using needed to have the SOURCE changed from "Always replace..." to "Only when NULL..." This fixed the Download issue.
-
Strip Tags From Interactive Report Download.
Hi,
Is it possible to strip html tags from a column during a CSV download on a interactive report?
Basically i have a report where one of the columns is as follows
453<font color="red"> | </font>0
but in the download i want to strip out the tags so in the csv the column would show
453 | 0
Any ideas how i can do this using the standard csv download from the drop down menu?
Thanks AndyJust wondering if any one had any thoughts on how I may be able to do this
-
Interactive Report Download to CSV limit is 65535 in APEX 3.2
Hello ,
I have an IR report in APEX 3.2 that returns around 75,000 rows . I have set the maximum row count in the report attributes under Pagination to 200,000 rows.
Despite this when I download the report to CSV, only 65535 rows are downloaded .
Is this a known bug with APEX 3.2 ? can someone please share the link if this bug is documented.
If not, Is there some other attribute I need to change to increase the download limit ?
Thanks,
Dippy
Edited by: Dippy on Jan 7, 2011 1:59 PMHi Tony,
Thanks for the reply . I have adjusted maximum row count to 100,000, even then I can download only 65535 .
I have around 12-15 Interactive Reports(each with different Query) and I do not want to write a custom download procedure for each report and also the application is in production.
I just want to understand(confirm) if it is a existing bug (3.2) , if there is any patch that will solve this or if there is a setting somewhere that I have missed.
Can you please check with some other query on your 3.2 installation ?
I ran a test on
select rownum
from all_objects where rownum < = 80000Norma report I was able to download all the rows but IR stopped at 65535
Thanks,
Dippy
Edited by: Dippy on Jan 10, 2011 11:33 AM -
Interactive Report - Download as xls giving empty report
Hi,
I have an interactive report where i have enabled all the available download formats from report attributes. Now, when I go to Actions -> Download and select format as .csv, html, email, then it works fine. But when I select download format as XLS/PDF then the downloaded file is an empty file (size 0 Bytes). This issue is coming with/without applying filters.
Any idea how to resolve it?
PS: I am using APEX version 4.2Do you have a print in place? Fop/BI Publisher are required to create other report type downloads (csv comes standard with APEX)..
The APEX Listener will replace FOP in producing PDF output..
Marc Sewtz: PDF Printing with Oracle Application Express 4.2.2
Thank you,
Tony Miller
SmartDog Services
Austin, Texas -
Interactive Report Download and Session State Protection
I have created an Interactive Report in an APEX application that I have enabled
session state protection for. The issue I am having is with the "Download"
functionality of the interactive report to a .csv file.
The URL created by selecting Download from the drop down (javascript:gReport.controls.download();)
is built or constructed without a checksum thus causing the error below.
Error
No checksum was provided to show processing for a page that
requires a checksum when one or more request, clear cache, or argument
values are passed as parameters.
The anchor tag containing the URL (/f?p=app_id:page:session_id:CSV:) is contained within
<div id="apexir_CONTROL_PANEL_DROP" class="drop_panel
clearfix" style="">
Running the following: Application Express 3.1.0.00.32 on Oracle Database 10g Enterprise Edition Release 10.2.0.3.0
Is there a way to add a checksum to this? OR does anyone have any ideas on how to work around this?
Edited by: Bryce Tuohy on Feb 26, 2009 10:08 AMWORKAROUND:
1.) Create hidden ITEM on page (I named it P23_PREPARED_CSV_DOWNLOAD_URL).
Enter the following for the ITEM
as the SOURCE_TYPE : PL/SQL Function Body
as the SOURCE: return apex_util.prepare_url('f?p=&APP_ID.:&APP_PAGE_ID.:&APP_SESSION.:CSV:')
2.) Create BUTTON that executes javascript to open POPUP window with this url.
a.) Create Button and enter
<a href="javascript:popupURL('&P23_PREPARED_CSV_DOWNLOAD_URL.')">Download and Save to CSV file</a>as the "Text Label/Alt"
Originally had custom code for javascript POPUP and this is not needed .... just use the APEX javascript function.
Edited by: Bryce Tuohy on Mar 5, 2009 10:47 AM -
Interactive Report Downloads only showing Column Headings
I have an Interactive Report that is selecting more than 100 columns. I set the defulat to only show a few of the columns (the rest are dedaulted to not show). When I try the download option (pdf, rtf etc.) , it only shows the column headers (no data). The download works when you originally create the Report region with the SQL statement. It seems to break as soon as you do the 'Save Report' - 'As default Report Settings'. Anybody seen this before? It is a bug?
Hi,
You are almost right place. You need click icon before 100th column name, order to go screen where you can edit column attributes.
In that screen right top is buttons (Cancle, Apply, < and >)
Regards,
Jari
Edited by: jarola on Jul 21, 2011 5:43 PM
It might documentation guides you to right screen
http://download.oracle.com/docs/cd/E14373_01/appdev.32/e11838/app_comp.htm#sthref978
>
To access Column Attributes:
1. On the Workspace home page, click the Application Builder icon.
2. Select the application.
3. Select a page. The Page Definition appears.
4. Under Regions, click Interactive Report next to the name of the report region you want to edit.
The Interactive Report Attributes page appears with the Column Attributes section at the top of the page.
5. To access the Column Attributes page, click the Edit icon next to the appropriate column Alias.
>
Edited by: jarola on Jul 21, 2011 5:44 PM -
Interactive Report Download Link Question
I have an interactive report where I have outer joined to a table that contain blobs that I want the user to be able to click a link to download. I have a custom procedure that works with the download link. However I can't figure out how to get the download link to only appear for the records that actually have a file (since it is outer joined, only some of the records have a blob file associated with them).
Click this link to see a screenshot of the report example.
The existing column with the download link was created as a column link, where I specify the url (to my custom download proc). The problem as you can see is that it puts the download link in that column for every row, whether there really is a file to download or not. I'd rather only have a download link where there is a file to download for that record (see the My File column).
Thanks in advance for any help on this.HOT TIP
If you are passing parameters into your download procedure in the URL then the users will be able to hack the URL and download information they shouldn't be able to. More worrying, if you have granted execute to public (which I think you have to) on the Procedure then information can be downloaded without the user being authenticated.
The solution is to have a page in the application with an On Load - Before Header process that calls the procedure, with some hidden items as parameters for the procedure. You can then evoke the procedure by branching to the page in the usual way and setting the page items in the URL. This will also allow you to add the additional Apex security features such as Session State Protection (Page requires a Checksum). Remember to revoke the execute privileges from Public.
Change the report link to:
SELECT some_columns,
NVL2(my_file,'Download',null) link
FROM your_table Then use the 'column link' region to create the link in the usual way and set the Link Text to #LINK#. If you have set the target page to require a Checksum this will then be added without having to code it into your sql.
I hope that makes some sense?
Shunt -
Interactive Reports Download In Colour format in html and csv
Hi All I want to download interactive report in colour format(as it is format) in html and csv using apex 4.0.2
Regards
Roberthttp://en.wikipedia.org/wiki/Comma-separated_values
A comma-separated values (CSV) file stores tabular data (numbers and text) in plain-text form. As a result, such a file is easily human-readable (e.g., in a text editor).re: colours of html output
interestingly, there are settings in print attributes, but they have no bearing on the output... obviously nothing to do with the html output. Probably best bet is BI Publisher, where you can define your own report templates. -
Interactive Report download not matching displayed data
Hi
I have an interactive report with a simple where clause in:
select * from table etc
where a.entry_date > :P2_DATE
P2_DATE is a select list with redirect, with 2 options. Selecting the first option (the default) should return ~200 rows, the second should return ~800 rows. This functionality works correctly in the interactive report display, however the download to csv option only ever exports the ~200 rows - as if the IR download is fixed to the original query results. I'm using version 3.1.2.00.02.
Is this a known bug?
Thanks
-MarcHi
Have you tried changing it to a Select List with Submit?
Typically, this sort of behaviour means that the value selected from the list is not being stored in the session, so the report does not know that value - only the preivious value.
Also, how are you setting the default? I tend to do this using a page computation (conditional on the item being null)
Andy -
Interactive Report - download to PDF, fixed column widths-- why
We are using 4.1.1.00.23, we have just installed the Apache/FOP solution to download our Interactive Reports to PDF.
The issue is that it seems that no matter what we do the column widths become evenly distributed in the downloaded report. When the report only has 5-8 columns this is ok, doesn't look as good as we would like but it is ok. The problem comes when we have many columns, then all of the columns get shrunk down to these little columns that become totally useless.
Also, it appears that no matter what page size I define in the Page Attributes it sizes the columns to fit on an standard page (8.5x11).
The question I guess is: Is there a way to download an Interactive Report to PDF, that looks exactly like the report that is displayed for the Interactive Report?
We have been looking at lots of the documentation and fear we are missing something because it appears that most solutions talk about creating a "Shared Component" Report Query and Report Layout, which when you have a hundred interactive reports seems crazy....why can't we just download what we see on the screen.
If there was a way to put Headers/Footers on HTML download, then we would not need to do this, but I have not found a way to do that either.From our understanding, it looks like we would have to create another report for each of our existing Interactive Reports, which would be a JasperReport or something.
We know there is something with the XSL-FO templates, is that what iReports can do for us? Really this is a new world for me, so I do fear that I might be asking my question wrong.
Like I said maybe we are missing something. We were able to get the FOP to work, but the problem with that is all of the columns are evenly distributed widths. On some reports, which have many columns, there could be a name column that needs to display 50 characters, but then the next field only has 5 characters. It appears that without creating an additional report or report layout for each report we cannot print the results of the interactive report.
Maybe I am completely missing something in all of this, but I find it hard to believe that we have to create multiple versions of a report just to be able to print it. If we had just wanted to create a static report, then I would have continued using Oracle Reports, like we have for the last 20yrs.
Maybe you are looking for
-
I have a question about creating another control file. If I want to create another control file, do I need to put the values/paths of the current control files in the CREATE CONTROLFILE statement?
-
HOW TO ADD NEW COLUMN IN EXISTING QUERY
hi, i m working on oracle reorts 10g. i have a multiple query based report. now i want to add a new column in query 1 and order by on that new column . i added column in query but when i see that group i dont find that column in that group.wt do i ne
-
FM10: PDF output not including part of graphic in header
Here are my versions: (TCS3.0) FM 10.0.1.402 Acrobat 10.1.1 Distiller 10.1.133 I have a book recently created in FM10. I needed to add a very large table. I followed Barb Binder's instructions for setting up landscape master pages (from the IconLogic
-
Dynamic HTML Content in iFrames of a BSP application
Hey Folks, I am currently having to build a context sensitive URL, which is built dynamically and accordingly load the page within a given view during runtime. The URL points to a simple HTML page. The application whcih is embedded in the view is a B
-
Current leakage/electric shock while charging
I just own the Macbook Pro Retina Display for a few days and everytime I'm trying to charge it with the supplied charger, the metal casing has feel of electrical shock! I encountered this at all location regardless of power sources, from various coun