CSV download
I have one filed Notes on which i have a tooltip.for Notes filed have two field one is for displaying purpose which is truncated and another one is field containing whole text use for CSV download.
things work first time fine if the use request=CSV for field which i want to download and not display,but if I do some changes in select column list of Interactive report then that column is vanish from the CSV download.
Thanks.
I think your explanation is not good enough. You should explain your problem better. Maybe an example at apex.oracle.com would be the best.
Denes Kubicek
http://deneskubicek.blogspot.com/
http://www.apress.com/9781430235125
http://apex.oracle.com/pls/apex/f?p=31517:1
http://www.amazon.de/Oracle-APEX-XE-Praxis/dp/3826655494
-------------------------------------------------------------------
Similar Messages
-
Getting no data found error while CSV download
Hi,
I have a report generated from the PL/SQL returning the query and I enabled the CSV Download option. But, when I try downloading the report contents using CSV download option, the excel sheet contains message "no data found". I enabled sorting and sum on few columns. Is it anywhere related to CSV download? Any solution would be really helpful..
Thanks,
PrabhakarThanks for the help!! yep, it is indeed the wrong session state value. In the report, I was modifying the value to display the report, hence when CSV download is given, it was taking wrong session state value. So, giving "no data found" error. Probably, this may help some people.
Regards,
Prabhakar -
Header and footer on a csv download
Hi
Is there an easy way to add an extra header and footer to a csv download ?
What the user wants is a csv of the format
New heading --- the additional heading
col name, col name ..... -- the existing column names
value, value ..... -- the existing values
New footer -- some new text footer
I have tried break formatting but have had no success. The csv produces perfectly but I can't get the additional lines added !
Ta
BobNo unfortunately I have not found the time to do a blog yet.
Create a blank page and create an AFTER HEADER pl/sql process.
Then add code like the following, changing query as needed
declare
cursor result_cur is
select empno, ename, job
from emp;
begin
htp.init; -- Wipe out the buffer
owa_util.mime_header ('application/excel',false);
htp.p('Content-Disposition: attachment; filename="FormResults.csv"');
owa_util.http_header_close;
-- write your header
htp.p('This is my header');
htp.p(' ');
-- write out the column names
htp.print ( 'Emp Num, Employee Name, Job' );
--write out each row
for it in result_cur loop
htp.print ( '"'||it.empno||'","'||it.ename||'","'||it.job||'"' );
end loop;
-- write out footer
htp.p(' ');
htp.p('This is my footer');
-- Send an error code so that the
-- rest of the HTML does not render
htmldb__application.g_unrecoverable_error := true;
end;you can call this by making it the redirect target of a button or by adding something like the following in the footer section of your report region assuming the page you created the above process on was page 9
<a href="f?p=APP_ID.:9:&SESSION.">Click here to download CSV</a>sorry the code above shows a # and does not show the f p syntax url which should be f followed by a ?p=&APP_ID.:9&:SESSION.
Edited by: Larry Linnemeyer on May 20, 2009 8:08 AM -
3.1 IRR download CSV behaves different than 3.0.1 CSV download
I am generating some links dynamically in the select statements for some of my reports (i.e. select decode(REGULAR_EXPRESSION_KEY,
null,'-NO RE-',
"a href="f?p=&APP_ID.:2:... )
Note: I changed the example a bit so that it would display and not be interpreted...
The download to CSV in my 3.0.1 automatically stripped this HTML out of the download to CSV.
The CSV Download in the Interactive Reports of 3.1 did not strip the html. All of this HTML is downloaded into the CSV file.
Is there a way to get this 3.1 Interactive download to CSV to behave the same way it worked with the 3.0.1 download to CSV?
Thanks,
SteveHi Gurus,
I updated one of my small apex application to use interactive report, but I also encountered this kind of
'cannot export to CSV' problem, it is so bad, we need to export to Excel all the time! I have to give up my upgrading and remade it with classic report, though many cool stuffs with interactive report, pitty!
Ok, I will try to use your method to work around this problem, that may give me some kind of hope.
Hope you can improve this much more in the later release.
Anyway, 3.1 is very cool though, but also if you can more simply the Blob founction .
Peter -
Need the selected filters in the Interactive Report CSV download
A CSV download from the IR shows the table data.
I need a mechanism to insert the Filter criteria selected by the user within the CSV download.
Basically I have a search screen which brings the user to the interactive report and I would like to capture the search criteria the user entered in the CSV download.
Thank
SumitHi,
This might help
http://simonhunt.blogspot.com/2009/02/auditing-downloads-from-interactive.html
Br,Jari -
Custom Apex theme prohobits CSV Download link
Hi,
I'm using Apex 3.2.1.00.12; Database version = 11.1.0.7.0.
A customized theme is used for the application.
For a reports region I added CSV Download link, but it is not showing when i run the page.
Please let me know if any settings to be changed for the page/theme/template.
Thanks & Regards.Hi
In the report template (not the region template), there is a substitution string available called #CSV_LINK#
You need this somewhere in the template in order for the link to appear. For exmaple you may have something like this in the 'After Rows' section of the template...
</table><div class="someClass">#CSV_LINK#</div></td>
</tr>
#PAGINATION#
</table>Cheers
Ben -
Problem With Saved IR's And CSV Downloads.
Apex 3.2
I have found a strange problem.
I have an interactive report and 2 of the columns (msg and msg_1) are based on the same data.
One column (msg) is to display in the report and the other (msg_1) for the download. I do this by
putting conditions on the columns.
:REQUEST IS NULL OR :REQUEST NOT IN ('CSV') - for report
:REQUEST IN ('CSV') - for download
This works well.
If I take msg out of the report and then save as named report.
When I export to excel, then msg_1 column no longer appears, which I think is wrong.
If I put the msg column back into the report and save and export to excel, the msg_1
is still not there.
I have put an example of oracle.com
Workspace: GUSCRIGHTON
User: [email protected]
Password: terminator
Application: 29545 - Template
Page 1
Am I doing something wrong or is this a bug
GusHi,
I think it is not bug. You need first remove conditions from both columns and then select those to report.
Then save default report layout and then set conditions.
But if user change witch columns are displayed in report your msg_1 column will not be in download.
Better way archive what you looking for is use CASE WHEN is select e.g.
CASE WHEN :REQUEST IN ('CSV') THEN
msg_1
ELSE
msg
END AS msg
I did add example to your sample in apex.oracle.com
Regards,
Jari -
IR Saved Report - Download to CSV downloads Primary Report
Hi there
I'm using Apex 4.1, I login to my Apex application NOT using the developer interface (the developer buttons are not visable at the base of the page) as an end user would see.
If I run an IR report and then create a filter on the Primary report the report runs OK. I then click Actions -> Download and then Download the report output to a CSV file (correctly filtered) to a Excel spreadsheet. I then Save this report giving the report a Name and Description. I then logoff from the Apex application. So far so good.
I then login back on to my Apex Application. When I choose and run the Saved Report (described above - not the Primary report) the saved report runs correctly (applying the correct filter condition), HOWEVER when I then click on Actions - Download I seem to get the Primary report downloaded as a CSV file into my Excel spreadsheet - the filter condition that is applied to the saved rerport is ignored for the Downloaded CSV file. The File Downloaded is a new CSV file generated in Apex as reported in my Firefox 'Downloads' list.
Does anyone know if this is a Bug or have I not set up the IR correctly.
Thanks in Advance
Edited by: boketi on Aug 13, 2012 3:18 PMboketi wrote:
Hi Mehabub,
Many thanks for the quick response.
Did you test this in version 4.1 of Apex? I logged on to Oracle's 4.2 Early Adopter Beta Site and did the same and the IR works fine! Maybe it's a strange problem in 4.1 although I doubt it as with such a problem there would be a lot more noise on this forum. Could this be related to the 'theme' that I'm using? As the theme I'm using was origionally developed for Apex 3.2 and I don't think IR reports were around in 3.2?There is a good chance that it has to do with the theme or the upgrade from Apex 3.2. Interactive reports existed in 3.2 also user defined reports. But a lot of changes were made to the IR logic since 3.2 (introduction of multple standard reports, etc.).
I just tested your case in my Apex 4.1.1 version in an application that was also upgraded from 3.2. And the data was stored correctly into a csv file.
But it is useing one of the standard themes that was also updated.
Did you set the compatibility mode of your application to 4.1?
http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21676/apex_util.htm#AEAPI2329
begin
apex_util.set_compatibility_mode(<application id>, '4.1');
commit;
end; Just because the environment is Apex 4.1 does not mean you application runs in 4.1. mode. -
I have an Interactive Report which I would like to modify so that it downloads to CSV different fields than it displays (some of the online displayed fields are hypertext links). In the past, dealing with "classic" APEX reports, I did this by defining 2 versions of the relevant fields, one for display and one for download. I then used a PLSQL condition checking htmldb_application.g_excel_format to determine which version of the field to use. I have tried this using the Interactive Report, and it does not work for me. I would greatly appreciate any help in resolving this issue. In both the online and downloaded version of the report, I am seeing the hypertext links.
I am using APEX 3.1.1, running on Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production With the Partitioning, OLAP, Data Mining and Real Application Testing options.Your CSV-File use "comma" as separator. But Excel think, that CSV-File separator is "semicolon".
Try to set "CSV Separator"=";" in section "Report Attributes" - "Download". -
ORA-20876: Stop APEX Engine message in CSV download from Interactive Report
Hi,
1 particular Interactive Report in our application produces the following error message in the CSV file, if we attempt to download the report: -
ORA-20876: Stop APEX Engine
All other reports work OK, there is another thread here with the same issue, but no resolution was posted: APEX 4.1 ORA-20876: Stop APEX Engine
Has anyone else come across this issue?
Apex version is 4.1.0.00.32
Thanks,
Mike
Edited by: Mike, UK on Mar 6, 2012 9:39 PMHi,
what happens if you take the query from IR report and create a new classic report?
On this report enable csv export and then try the export.
Maybe that (format) data are causing export to fail.
Try to export just one row in your IR report (and classic report), so that you add where rownum < 2.
Regards,
Aljaz
Edited by: Aljaz on 6.3.2012 23:11
Edited by: Aljaz on 6.3.2012 23:29 -
Commas in the text field splits column in csv download file.
Hi,
I have developed an upload/download application in APEX 2.0. It seems to be that when the text values contain commas it divides the content to the next column when downloaded to a csv file. Is there any solution the problem? Please help!
MustakHi Mustak,
I think you have to enclose all your fields by " in your CSV file to avoid this.
I f you use the standard CSV export of a report, you have a field in the report attributes, CSV section, for enclose your fields.
If you have written your own PL/SQL procedure , so you have to adapt it.
Mike -
Export to CSV download link doesn't work
hi,
I have done the following:
If you click on the report link in your Region group
for the page concerned, then select the Report
Attributes tab and scroll down to Report Export you
can change the Enable CSV Output to YES and update
filename, separator etc.
This will show a link on the report page at runtime
that will allow the user to download the report in
CSV format to a spreadsheetAnd when I click on the link to download the report, it tries to download the page in html format...
any ideas on what the problem is?
thanks!!Anoushka,
Do you have spreadsheet software such as MS Excel or OpenOffice installed? What filename did you choose? Do you have your browser configured to launch a spreadsheet application when files of a certaim mime type are downloaded?
Sergio -
CSV downloaded file cuts on the way
Hi I'am Junji from Tokyo.
I use 10.2.0.2.0 Oracle Database 10g Release
and Oracle Application Server 10g Release2.
A DB server and the Web server become another server,
but PL/SQL on a DB server kicked with mod_plsql by a Web screen starts,
and take out data from DB, and make a CSV file on a DB server.
CODE:
OWA_UTIL.MIME_HEADER('application/octet-stream', False);
htp.print('Content-Disposition: attachment; filename=xxxxx');
owa_util.http_header_close;
LOOP
htp.prn(CSV 1 line);
LOOP END;
It is many time good,
but,sometime csv file was cutted.
I don't know why.
When the condition that this phenomenon is easy to occur pushes the save button
after PL/SQL handling of Web side is completed,
and the WEB screen of the client left "download (open/save/cancel) of the file" and a displayed state for around 10 minutes,
push the "save button" ,and then, csv file is cut and shorter.
Will this be a problem of the Web server?
Or will it be a problem of setting such as Internet Explorer of the client?
Thanking you in advance.Have you tapped on the folder in the top right corner of Pages? This is where iTunes transfers the documents to the iPad, there is then one more step into importing them into that documents page.
But no, Pages can only read Microsoft Word, Pages '09, or plain text files. It can export pdfs though.
Try importing those pdfs through iBooks. -
CSV Download - issue with quote
Hi,
I am trying to downlaod my tabular form using Enable CSV output option in Reports Attribute. The report attribute setting has SEPERATOR as blank(so default comma) and ENCLOSED BY blank(so default ").
My requirement is after i download i update few data and re-uplaod again which updates the data into my custom tables.
My issue is, i have a value like -test1/2" size- (only the value between the '-'). So when i download this data and open the csv file in text format i can see the data is downloaded as
"test1/2"" size"
It has a enclsoed by as quote but it has added 1 more quote after 1/2"
Because of this my validation is failing and i am not able to upload the data.
Can any one help on this issue.
Please let me know if my question is not clear.
Thanks,
ShankarHello,
Thanks for looking into my issue.
I tried with follwing options
Seperated By :
Enclosed by '
Seperated By '
Enclosed by :
Seperated By blank
Enclosed by '
Seperated By '
Enclosed by blank
In all the 4 optiosn when i downlaod the csv data i see an extra " after the original value
Thanks,
Shankar -
How can I get an itemised .csv download of my EE bill?
I've just recently changed from Orange to EE to get 4G. I use my phone for work and have to submit my work calls logged in an excel spreadsheet to claim expenses, with Orange I could download an itemised .csv file of all my calls. Does anyone know how to download this information from EE, I can only seem to find a PDF download option, which is rubbish for copying in to excel as the format is all screwed up. Thanks a million
If you want itemised billing you will need to call customer services and request this it will cost you £1.50 each month to have this. All you get otherwise is that PDF.
Maybe you are looking for
-
Flash Components in Visual Composer 7.0 - TechEd 2009 Demo
Watch this Demo in order to see how easy is it to embed cool controls into Visual Composer 7.0 in this case, we are embeding Gauges, an Interactive European Map and an iPhone style CoverFlow control. http://www.youtube.com/watch?v=RJ0Tq-3vK6w
-
Can't create ODBC connection in Windows Server 2012R2
I just finished installing the instant client & odbc connection on Windows Server 2008R2. I then attempted to perform the same installation on a new Windows Server 2012R2 instance and encountered the following issue. After extracting the contents of
-
"Open recent..." menu always empty
Hi, since i run Mac OS X Leopard the File > "Open recent..." menu is always empty although i have set the number of Recent items to 15 in System Preferences. I thought this could be due to permission problems but Disk Utility claims that everything i
-
Hi, SAP re-org, performance monitor and TMS jobs are failing continuously in the system with the message 'No logon possible (no hw ID received by mssg server)'. what could be the possible reason for this and the steps to correct this? Thanx Balaji S
-
Does OVM Manager require access to SAN/NAS VLAN
Hello everyone, In our setup OVM Manager is installed on its own physical server, using for storage the local disk. Does the storage discovering process requires OVM Manager to have access to the SAN/NAS VLAN, or is this going through the OVM Servers