Report Export to csv doesn't correct translate additional characters in 3.0
Hi all,
i'am using apex 3.0 and the report export build in function does not export the correct german umlaut ( "ü" is translate to "ü").
My characterset are
NLS_CHARACTERSET: WE8ISO8859P1
DAD CHARACTERSET: UTF-8
Go in "Application > Shared Components > Edit Globalization Attributes > Globalization" and change "Automatic CSV encoding" to YES. Should work!
Adrian
Similar Messages
-
Report export to csv - no data found in report
Hi all,
I've followed the steps to export my report to a csv file. In the Report Attributes, Report Export section I have:
Enable CSV output: Yes Separator: , Enclosed By:
Link Label: Export
Filename: Changes.xls
But when I open it in excel, no data found is the only test showing in cell A1.
Is there something else I need to do? I don't understand why it's not exporting my report - there is data on my screen in the report.
Thanks,
DaveDave,
Have a look in my blog:
http://deneskubicek.blogspot.com/2007/03/csv-export-problem.html
There is an explanation on how to avoid that.
Denes Kubicek
http://deneskubicek.blogspot.com/
http://htmldb.oracle.com/pls/otn/f?p=31517:1
------------------------------------------------------------------- -
Dynamic file name for report export to csv
If "Enable CSV output" = "YES" for a report region titled "Invoices", the default file name is "Invoices.csv". If I have a parameter, Pn_MONTH, for the month (e.g. Jan 2010, Feb 2010, etc.) and the report only shows data for that month, I would like to have the resulting file named "Invoices_Jan_2010.csv".
I've tried setting the Report Export Filename to "Invoices_&Pn_MONTH..csv" and setting the region title to be "Invoices_&Pn_MONTH." but the resulting file name is coming up as "Invoices_.csv"'. I even tried "Invoices_:Pn_MONTH.csv" just to be sure but that makes it "Invoices_:Pn_MONTH.csv"'.
How can I get this to work?This same method works for generating dynamic column headings from other page items, but I've never tried it for the download file name.That's the problem. The parameter P_MONTH is itself a page item and this is not consistent with other dynamic substitution. Looking at the page source, the export link is
f?p=102:9:8985946323211742:FLOW_EXCEL_OUTPUT_R2805111921107129_en-uswhere presumably "FLOW_EXCEL_OUTPUT_R2805111921107129_en-us" is an application process and "2805111921107129" is the internal id of the region. The filename is not part of the link. -
Show user entered date when ssrs report exported to csv format
Hi All,
How can I show date range parameter entered by user when ssrs report is exported to csv format.
my csv output should look like this....
Date : 01/01/2015 TO 01/31/2015 (user selected dates)
ID,EmpFirstName,EmpLastName,Location
1,Tom,Garry,NY
2,John,Graham,NJ
3,Ron,Lorrie,CA
Thanks,
RH
sqlHi RH,
You can add two textbox at the top outside the tablix and using expression to get the parameter value use have selected to display in the textbox as blew:
TextBox1: =Parameters!Date.Value
TextBox2: =Parameters!To.Value
For Multiple value parameter you can use the expression like : =Join(Parameters!Date.Value,",")
You can rename the two textbox' name in the properties as "Date" and "To" then the two textboxs will display like belkow in the CSV report:
Date TO
01/01/2015 01/31/2015
ID EmpFirstName EmpLastName Location
1 Tom Garry NY
2 John Graham NJ
3 Ron Lorrie CA
If you still have any problem, please feel free to ask.
Regards
Vicky Liu
Vicky Liu
TechNet Community Support -
hi,
I am using the report export feature of oracle APEX. IT is working fine except i m getting something like this (div tag start)div id="report_19777432813352373_catch""First Name"
in the first column of the report and the report ending with (div tag end)/div..
i just need "First Name".. Can anyone help me out?
Thanks in advance
Vishal
Message was edited by:
apex_learnerHi
In the report attributes, under Layout and Pagination, set the Enable Partial Page Refresh to No.
Regards
Paul -
Report export to excel doesn't work correctly
I've seen this problem is quite common, and some workarounds but none is correct for me.
I have a SQL function returning report with several filters (something based on the Issues report of the Issue Tracking Application, APEX example).
In my case seems to work correctly only when I hard code the value of :P15_CANVI_DE_CLUB. I've tried Denes Kubicek solution of setting a computation before header of this item, but it does not work. Unluckily Denes package can't be used with SQL function returning report so I cannot use it to print my report.
Anyone knows how to face this flaw?
Thanks for your help.
That's the SQL function
declare
q varchar2(20000); -- query tasques
q0 varchar2(4000); -- query suport subtasques
q1 varchar2(4000); -- query subtasques
w varchar2(4000) ; -- where, condició de filtres
w1 varchar2(4000) ; -- where, condició de tasques
w2 varchar2(4000) ; -- where, condició de subtasques
w21 varchar2(4000) ; -- where subtasques
w22 varchar2(4000) ; -- where subtasques amb filtres de pantalla
begin
-- q és la consulta de tasques ("TAS_TAS_ID" is null) a aquesta
-- consulta s'ha d'unir q1 que són les subtasques
q:= 'select null as "Tasca", '||
'"GES_GES_ID", '||
'"TAS_ID", '||
'"TITOL", '||
'"DESCRIPCIO", '||
'"ASSIGNADA", '||
'"DATAINICI", '||
'"PREVISIO_FI", '||
'"DATA_FINAL", '||
'"PRIORITAT", '||
'"SITUACIO", '||
'"ORIGEN", '||
'"NUMERADOR", '||
'"ANY_NUMERADOR", '||
'"CODI_NUMERADOR", '||
'"NUMERO", '||
'"AGR_ASS_ASS_ID", '||
'"AGR_CODI", '||
'"TAS_TAS_ID", '||
'"TAS_GES_GES_ID", '||
'"GES_GES_ID_ESTA_ASSIGNADA", '||
'"GESTOR", '||
'"PUBLICA", '||
'"GRUP_TASQUES", '||
'"NOM", '||
'"COGNOM1" '||
'from "STASVWREPORT_TASQUES" ';
-- Les següents línies calculen les condicions de filtres de pantalla
-- Filtre origen
if :P15_ORIGEN!='-1' THEN
w:= w||' AND "STASVWREPORT_TASQUES"."ORIGEN"=:P15_ORIGEN';
end if;
-- Filtre prioritats
if :P15_PRIORITATS<>'-1' then
w:= w||' AND "PRIORITAT"=:P15_PRIORITATS';
end if;
-- Filtre situacions
if :P15_SITUACIONS<>'-1' then
w:= w||' AND "SITUACIO"=:P15_SITUACIONS';
end if;
-- Filtre grup de tasques
w:=
case :P15_GRUPS_TASQUES
when '%' then w||' AND ("STASVWREPORT_TASQUES"."AGR_CODI" LIKE (''%'') or
"STASVWREPORT_TASQUES"."AGR_CODI" IS NULL)'
when '-2' then w||' AND ("STASVWREPORT_TASQUES"."AGR_CODI" IS NULL)'
else w||' AND "STASVWREPORT_TASQUES"."AGR_CODI"=:P15_GRUPS_TASQUES and '||
'"STASVWREPORT_TASQUES"."AGR_ASS_ASS_ID"=:ASSOCIAT '
end;
-- Filtre obertes/tancades
if :P15_OBERTES='O' then
w:= w||' AND "DATA_FINAL" IS NULL';
end if;
if :P15_OBERTES='T' then
w:= w||' AND "DATA_FINAL" IS NOT NULL';
end if;
-- Filtre títol/DESCRIPCIO
IF :P15_TITOL_DESCRIPCIO=1 THEN
IF :P15_TITOL IS NOT NULL then
w:= w || ' AND TRANSLATE(UPPER("STASVWREPORT_TASQUES"."TITOL")';
w:= w || ',''ÀÁÈÉÍÏÒÓÚÜ'', ''AAEEIIOOUU'') ';
w:= w ||'LIKE ';
w:= w ||'TRANSLATE(UPPER(''%';
w:= w ||:P15_TITOL||'%''),''ÀÁÈÉÍÏÒÓÚÜ'', ''AAEEIIOOUU'')';
END IF;
ELSE
IF :P15_TITOL IS NOT NULL then
w:= w || ' AND TRANSLATE(UPPER(';
w:= w || '"STASVWREPORT_TASQUES"."DESCRIPCIO")';
w:= w || ',''ÀÁÈÉÍÏÒÓÚÜ'', ''AAEEIIOOUU'') ';
w:= w ||'LIKE ';
w:= w ||'TRANSLATE(UPPER(''%';
w:= w ||:P15_TITOL||'%''),''ÀÁÈÉÍÏÒÓÚÜ'', ''AAEEIIOOUU'')';
END IF;
END IF;
-- Filtre propietari/gestor
if :P15_GESTOR_PROPIETARI='-1' then
w:= w||' AND ("STASVWREPORT_TASQUES"."GES_GES_ID"=:GESTOR) ';
end if;
if :P15_GESTOR_PROPIETARI='-2' then
w:= w||' AND ("STASVWREPORT_TASQUES"."GES_GES_ID_ESTA_ASSIGNADA"=:GESTOR) ';
end if;
if :P15_GESTOR_PROPIETARI='-3' then
w:= w||' AND (("STASVWREPORT_TASQUES"."GES_GES_ID"=:GESTOR ';
w:= w||'OR "STASVWREPORT_TASQUES"."GES_GES_ID_ESTA_ASSIGNADA"=:GESTOR)';
w:= w||'OR ("STASVWREPORT_TASQUES"."AGR_ASS_ASS_ID"=:P15_CANVI_DE_CLUB ';
w:= w||' AND "STASVWREPORT_TASQUES"."PUBLICA"=''S''))';
end if;
if :P15_GESTOR_PROPIETARI='-4' then
w:= w||' AND ("STASVWREPORT_TASQUES"."GES_GES_ID"=:GESTOR ';
w:= w||'OR "STASVWREPORT_TASQUES"."GES_GES_ID_ESTA_ASSIGNADA"=:GESTOR)';
end if;
-- Filtre dates
if :P15_SELECCIO_DATES = '1' and :P15_DATA_INICI_F is not null then
w:= w|| 'and ("STASVWREPORT_TASQUES"."DATAINICI" >= :P15_DATA_INICI_F ' ;
w:= w|| 'and "STASVWREPORT_TASQUES"."DATAINICI" <= :P15_DATA_FI_F) ';
end if;
if :P15_SELECCIO_DATES = '2' and :P15_DATA_INICI_F is not null then
w:= w|| ' and ("STASVWREPORT_TASQUES"."PREVISIO_FI" >= :P15_DATA_INICI_F and ';
w:= w|| '"STASVWREPORT_TASQUES"."PREVISIO_FI" <= :P15_DATA_FI_F) ';
end if;
if :P15_SELECCIO_DATES = '3' and :P15_DATA_INICI_F is not null then
w:= w|| 'and ("STASVWREPORT_TASQUES"."DATA_FINAL" >= :P15_DATA_INICI_F and ';
w:= w|| '"STASVWREPORT_TASQUES"."DATA_FINAL" <= :P15_DATA_FI_F) ';
end if;
if :P15_CALCULAR_NUMERO='NUM' then w:= '"STASVWREPORT_TASQUES"."GES_GES_ID_ESTA_ASSIGNADA"="STASTBGESTORS"."GES_ID"(+) '||
'and "STASVWREPORT_TASQUES"."AGR_ASS_ASS_ID"="STASTBAGRUPACIO"."ASS_ASS_ID"(+) '||
'and "STASVWREPORT_TASQUES"."AGR_CODI"="STASTBAGRUPACIO"."CODI"(+) ';
w:= w||' AND (("STASVWREPORT_TASQUES"."GES_GES_ID"=:GESTOR ';
w:= w||'OR "STASVWREPORT_TASQUES"."GES_GES_ID_ESTA_ASSIGNADA"=:GESTOR)';
w:= w||'OR ("STASVWREPORT_TASQUES"."AGR_ASS_ASS_ID"=:P15_CANVI_DE_CLUB ';
w:= w||' AND "STASVWREPORT_TASQUES"."PUBLICA"=''S''))';
if :P15_CODIS_GRUPS!='-1' then
w:= w||' and "STASVWREPORT_TASQUES"."CODI_NUMERADOR"=:P15_CODIS_GRUPS ';
else
w:= w||' and "STASVWREPORT_TASQUES"."CODI_NUMERADOR" is null ';
end if;
w:= w||' and "STASVWREPORT_TASQUES"."NUMERADOR"=:P15_NUMERO ';
w:= w||' and "STASVWREPORT_TASQUES"."ANY_NUMERADOR"=:P15_ANY ';
:P15_CALCULAR_NUMERO:='NO';
end if;
w1:= '"STASVWREPORT_TASQUES"."TAS_TAS_ID" is null ' ||w;
q:= q || ' WHERE '|| w1;
-- La mateixa consulta però seleccionant només els TAS_ID
q0 := 'select "TAS_ID" '||
'from "STASVWREPORT_TASQUES" ';
q0:= q0 || ' WHERE '|| w1;
-- q1 dóna les subtasques de les tasques triades a q
-- (STASTBTASQUES"."TAS_ID" in(q0)) i a més a més les subtasques que
-- cumpleixen les condicions de filtres de pantalla
-- (TAS_TAS_ID is not null and w)
q1 := 'select ''Subtasca'' as "Tasca", '||
'"GES_GES_ID", '||
'"TAS_ID", '||
'"TITOL", '||
'"DESCRIPCIO", '||
'"ASSIGNADA", '||
'"DATAINICI", '||
'"PREVISIO_FI", '||
'"DATA_FINAL", '||
'"PRIORITAT", '||
'"SITUACIO", '||
'"ORIGEN", '||
'"NUMERADOR", '||
'"ANY_NUMERADOR", '||
'"CODI_NUMERADOR", '||
'"NUMERO", '||
'"AGR_ASS_ASS_ID", '||
'"AGR_CODI", '||
'"TAS_TAS_ID", '||
'"TAS_GES_GES_ID", '||
'"GES_GES_ID_ESTA_ASSIGNADA", '||
'"GESTOR", '||
'"PUBLICA", '||
'"GRUP_TASQUES", '||
'"NOM", '||
'"COGNOM1" '||
'from STASVWREPORT_TASQUES ';
w21:= '"TAS_TAS_ID" IN ('||q0||')';
w22:= '"TAS_TAS_ID" IS NOT NULL '||w;
w2:='('||w21||') OR ('||w22||')';
q1:= q1 || ' WHERE '|| w2;
q:= q ||' UNION ' || q1;
return q;
end;Problem solved!!
<br><br>
See this part of the query:
<br><br>
if :P15_GESTOR_PROPIETARI='-3' then<br>
w:= w||' AND (("STASVWREPORT_TASQUES"."GES_GES_ID"=:GESTOR ';<br>
w:= w||'OR "STASVWREPORT_TASQUES"."GES_GES_ID_ESTA_ASSIGNADA"=:GESTOR)';<br>
w:= w||'OR ("STASVWREPORT_TASQUES"."AGR_***_***_ID"=<FONT color=red>:P15_CANVI_DE_CLUB</FONT> ';
w:= w||' AND "STASVWREPORT_TASQUES"."PUBLICA"=''S''))';<br>
end if;<br>
<br>
when instead of :P15_CANVI_DE_CLUB I put a value (say ''EE'') it works correctly, finally I created an application item (ASSOCIAT) and when when I change :P15_CANVI_DE_CLUB I set :ASSOCIAT to the same value and the query is based on this application item:
<br><br>
if :P15_GESTOR_PROPIETARI='-3' then<br>
w:= w||' AND (("STASVWREPORT_TASQUES"."GES_GES_ID"=:GESTOR ';<br>
w:= w||'OR "STASVWREPORT_TASQUES"."GES_GES_ID_ESTA_ASSIGNADA"=:GESTOR)';<br>
w:= w||'OR ("STASVWREPORT_TASQUES"."AGR_***_***_ID"=<FONT color=red>:ASSOCIAT </FONT>';<br>
w:= w||' AND "STASVWREPORT_TASQUES"."PUBLICA"=''S''))';<br>
end if;<br>
<br> -
Blank report export to CSV fails
Using the latest version of Crystal Reports runtime for Java, I'm trying to export a blank report to character-separated values (CSV). The export fails when I try to call PrintOutputController.export(). Specifically, code execution appears to halt after calling export(), i.e., the call appears to do nothing but hang indefinitely, without returning anything.
Is this a bug? Since exporting a blank report to CSV would produce a zero-length text file, could it be that the SDK is waiting for some buffer to be populated, but it never is?i just tried this in 12.2.212.x and it creates a blank csv file. How do you have ur blank blank report? A report without datasource, fields parameters or really anything or a report which gets 0 records back from DB?
Thanks
Aasavari -
Hi,
I need to export FR Report to CSV file. This is should be done on adhoc basis. For this I have created a command line scheduler. Can we export the report to external directory in CSV format rather than in HTML or pdf?
There is concept Bursting to CSV? Whether this export the data CSV file? How to use this one?
Thanks in advance...
Thanks,
Naveen SuramI'm not sure there might be a third party tool which could help you export AUTOMATICALLY (or maybe even writing a MAXL report script)?
You can export to xls from Hyperion, but I don't believe it can be automatic or scheduled.
You have to be careful as the xls files that are created by exporting aren't really Microsoft Excel files, they are some kind of email storage containers incl. binary encoded html files as attachment. Those files are basically saved emails containing html attachments, but not plain, the attachments are binary encoded.
(I did this investigation to see if OpenOffice could open the attachments in a more readable way, but unfortunately not).
Cheers, Iain
Added Clarification: Iain Curtain on Mar 12, 2010 10:20 AM -
PL/SQL report export to csv
Hi,
If you create a pl/sql report there is no option to create a csv. I need that functionality on my page anyway. Is there a way of programming this? Perhaps there is a export_to_csv api?i will create my page based on a collection. Its a sort of summary report, but with an unknown number of columns.
Collection 'Dealers'
....................DealerA Dealer B Dealer C Dealer D
region1..............1..............4........... 7............2
region2............. 9........................... 5............3
the regions are rows, the number of dealers is unknown. Thats why I need to use a pl/sql report, with htp. prints (htp.tabledata etc) -
Report export (CSV) results in page not found error
Hello,
I'm having this strange error which i cannot seem to figure out. I have enabled report export through CSV in a report (report attributes). When i click the link in the report i get a page not found error (http 404). At first i thought it was a problem with the http-server. But as other applications (on different databases) don't have this problem i'm thinking it has to do with this apex-instance. Till 2 days ago it did work on this instance too.
I'm really out of ideas, so if anyone can push me in the right direction i would really appreciate!
Apex 3.2
DB 10.2.0.4
Thanks,
PatrickDoes this compare to the same as the url for your page?
Has your server changed?
Have you changed the dad file recently?
have you checked the Apache access/error logs right after the 404 error is encountered ?
Gus.. -
Report Export - No data when query based on Application Context
I updated my Query Region source to use a Global Application Context and now the Report Export (to .csv) download has no data. This appears to run the query again in under a different session_id perhaps(?)
In a before header process I set the session_id to access a couple of date values set by the user via LOVs - the 'Search' button and an After Submit Process sets the context values which are accessed in the where clause, i.e
where date_attribute between to_date( SYS_CONTEXT('MY_CTX', 'START_DATE'), 'dd-Mon-yyyy')
and to_date( SYS_CONTEXT('MY_CTX', 'END_DATE'), 'dd-Mon-yyyy')
If you know any solution or alternative approach I'd be very grateful for your tips. I like Apex because you can leverage core Oracle database technology but then in some case you do hit these little troubles!
Thanks
CraigThanks for the link to the posts.
I considered the Security Attribute but thought that was somewhat inappropriate for just the one page I am setting the context; I understand the Security Attribute function would set 'My_Ctx' values on all page requests. -
Interactive report Export report link
I understand normally reports export to .CSV files & assume the name of the Report Region.
I see where in the interactive report - Report attributes - Report Export section you can specify a Fixed name for the report.
MY QUESTION:
Since my BOM report is based on a variable Part Number, can I have the variable become the name of my export.
Example I run a query for a 1234 p/n, can my report then download as 1234_BOM.csv
Thanks,
bobHi,
Set application or page item value to name you like have to your CSV file.
Then Interactive Report Attributes set Filename to your item name like
&Px_MY_ITEM.Regards,
Jari -
Is it now possible to export a report of more than 64k rows now that Excel has increase this limit? If so, how?
Thanks!Hi,
Yes you can export more than 64k rows.
1) Create a SQL Query region and enter your SQL.
2) In Report Attributes in Maximum Row Count enter 99999999
3) In Report Export, enable CSV output
Regards
Paul -
Export to CSV Option - no data found
Hi
I have an app with various report regions that work fine on-line. They typically take one or more values from select lists as input to the where clause, and have summary processing based on first or first and second columns. It seems that some reports export to csv just fine, but others produce a csv file with just the 'no data found' message ? Any ideas ?
cheers
JulesHi Chris
I think I understand what happens now - i.e. the CSV export runs in a separate session from the on-line page. Your suggestion has fixed the proplem - by having a button to redirect / resubmit back to the same page the csv export then picks up the right data.
However I do not understand why as this seems no different to having a one or more parameter fields defined as 'select list with re-direct', which I do. Any further explanation appreciated.
Jules -
Report output Export to CSV issue
Hi Experts,
I have a Bex Query. After running the report when I export the report in CSV format using "Export to CSV" from the report output screen, the data
is being dumped in different columns And when i try to convert that particular CSV file to Excel as we can only select one single column for delimiting the values using a separator into different cells the data in the other column is being truncated.
Kindly suggest me how to resolve this.
Thanks in Advance,
SushmaHi,
(If anything else on the BW side doesn't help).
Not so long ago I had a similiar problem all data (originally taken from several columns) were in one column - solved it with the help of VB coding.
Sth like this could help you.
Regards, Leszek
Dim tekst As String
last_row = Selection.SpecialCells(xlCellTypeLastCell).Row
Range("A1:Z" & last_row).Select
Cells.Select
Selection.NumberFormat = "@"
For wiersz = 1 To last_row
Cells(wiersz, 1).Select
tekst = Selection.Value
Cells(wiersz, 1).Value = Left(tekst, 21)
Cells(wiersz, 2).Value = Right(Left(tekst, 27), 6)
Cells(wiersz, 3).Value = Right(Left(tekst, 37), 10)
Cells(wiersz, 4).Value = Right(Left(tekst, 50), 13)
Next wiersz
Maybe you are looking for
-
I just bought this used iMac with Leopard and immediately upgraded to Snow 10.6.4. Now Time Machine won't show a partition to back up to; the window is blank and it just makes a button available to Set Up A Time Capsule. How do I get a partition avai
-
Can older dual core iMac be external monitor to new (lion) imac
If yes, how do they need to be connected and configured?
-
Rsau/local/file missing in WAS 700
Hi migrated from 46B to WAS 700. Now i need to enable Audit Log however parameter rsau/local/file is missing in WAS 700 please help. Regards, Surpreet do i need to maintain some more parameters i can see many new ones in WAS 700 like .... per_day and
-
I dont remember this being a problem in iTunes 10. Say I'm in album view. I find an album I want to play. I click on the track. Cool. Then I decide "Oh I need to see if this album is on a playlist I have." I switch to playlist view to check out the p
-
I'm in iPhone 5. I transfer photos to a Windows 7 PC, using the USB cable. Lately, the photos are appearing in Windows Explorer within monthly folders, with gibberish titles. The folder names will be 8 random letters and numeric characters. I ten