Report + Jquery + CSV export = jquery result lost
We have some IR reports with breaks. We put these next to eachother on specific headers with jquery code in the report. But when we do an export i want the same results as shown in the report. The changes made in Jquery get lost when i do a CSV export. Is there some way to get the same columns next to each other like in the report on the screen? or is there some other way to get the same result using something other than jquery? We are now want to making a function in DB using dynamic sql that returns a query to apex report but there should be some easier way in Apex than this no?
Thanks in advance
@ TexasApexDeveloper i asked this question on linkedin Apex group before. But not here. So there no way to show the breaks next to eachother in the CSV file? with or without use of Jquery?
@ Tyson: no sample app.
Standard behavier of IR report:
department :1
col1 col2 col3 col4
BREAK
col1 col2 col3 col4
BREAK
col1 col2 col3 col4
BREAK
col1 col2 col3 col4
BREAK
department :2
col1 col2 col3 col4
BREAK
col1 col2 col3 col4
BREAK
With Jquery made it look like this
department 1
col1 col2 col3 col4 BREAK col1 col2 col3 col4 BREAK col1 col2 col3 col4 BREAK col1 col2 col3 col4 BREAK
department 2
col1 col2 col3 col4 BREAK col1 col2 col3 col4 BREAK col1 col2 col3 col4 BREAK col1 col2 col3 col4 BREAK
i want the data like this in CSV, so that then user opens this in excel the data is presented horizontaly per department:
department 1
col1 col2 col3 col4 BREAK col1 col2 col3 col4 BREAK col1 col2 col3 col4 BREAK col1 col2 col3 col4 BREAK
department 2
col1 col2 col3 col4 BREAK col1 col2 col3 col4 BREAK col1 col2 col3 col4 BREAK col1 col2 col3 col4 BREAK
Similar Messages
-
Crystal Report XI - .csv export not working
Hi Folks,
I developed reports in Crystal Report XI R2 version (with service pack 6) and calling them from Power Builder 11.5. When I export the report to .csv format I see only parameter names with values (supplied to call this report) in csv file.
For eg:
Parameters are
Start Date: 01/01/2012
End Date: 02/01/2012
CompanyID: 21234
Regular output:
colum1 colum2 ...... columnn
data1 data2 datan
data1 data2 datan
data1 data2 datan
..... 10 records
csv output looks like this:
Start Date 01/01/2012 End Date 02/02/2012 CompanyID 21234
Start Date 01/01/2012 End Date 02/02/2012 CompanyID 21234
Start Date 01/01/2012 End Date 02/02/2012 CompanyID 21234
..... 10 records
Please let me know what changes should I do.
Thanks
IndraHi Indra,
Subreports are not exported to CSV, unfortunately. The multiple rows that you see are actually the detail sections that are repeating.
Try exporting to Excel and then to .csv from Excel.
-Abhilash -
Include page items along with report in CSV export file
I have a classic report and several page items asa apart of a classic report region. They represent various calculations based on the report.
When I export the report it does not include page items in it. Is it possible to include page items as a paart of the report export?
Thanks,
GagiGagiVel wrote:
I have a classic report and several page items asa apart of a classic report region. They represent various calculations based on the report.
When I export the report it does not include page items in it. Is it possible to include page items as a paart of the report export?No. Report exports include the rows returned by the report, not the contents of the report region. -
ORA-20876 in csv export from interactive report = Possibly a bug?
Hi Apex team,
yesterday i tried to download data to csv from an interactive report. The resulting csv file contained a "ORA-20876: Stop APEX Engine" only and no other data. I played around with other reports in my application and had no problems with exports.
After some investigation i found out that the buggy report contains a column of display type "Display as text (based on a LOV, escape special characters)". When I changed this column type to "Standard Report Column" for example, the error didn't appear anymore and the csv export contained complete data.
Maybe this is a bug? The environment is Apex 4.1.1.00.23 on 11g (UTF-8). Is there a workaround available?
Regards,
Jens
Edited by: j.gauger on 06.02.2013 14:10
Additional Information
The problem seems to occur only if a Shared Components LOV of type "Static" is referenced in the IR column.Hi,
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 -
Calling the CSV Export link in a Report Template
I'm trying to have our "download" link appear on the bottom left rather then the default which is to the far right in Look 4.
When I look at the source code, I can see how look 3 and 4 differ - different HTML table set-up and "align=right" for the link.
Unfortunately, looking at the source gives me the direct source for that specific report file not the command to include the csv export file, so I can't include it in a new report template design.
Is there code I can use to include a CSV link in my report template?
If not, how can I place the report download/csv export into my Nav bar region, or some other region?Michelle,
Typically you'll find the substitution strings documented in the popup help when clicking on the item label. But this one doesn't seem to be listed there. It's documented in the online help though. Click in the help icon in the upper right corner of your page and search for CSV.
Marc -
Cross-tab report functionality does not support .csv export.
I want to export the cross tab report in .csv format , but when I export the cross tab report to .csv format only header and footer gets printed multiple times and data is not getting exported.
No , cross tab report does not getting properly exported in .csv format. Only header and footer gets printed multiple times and data is not getting exported.
does cross tab report support .csv export based on WYSIWYG? -
Report Checkbox Columns in CSV Export File are NULL
Hi,
Hoping someone can assist. Am using Oracle ApEx 3.0.1.
I have a report that consists of a number of checkbox columns where I am using the Apex_Item.checkbox with a disabled attribute.
My questions is, when I attempt to export this report to CSV format, the columns referring to the checkboxes are showing up as NULL/blank, even though I am using a 'Y' and 'N' for the checkbiox values.
Any ideas on how to correct this issue?
Thanks.
Tony.Tony. With checkboxes you don't get a value while exporting. You can use this as an alternative:
1. in the checkbox column properties put the following PL/SQL expression in the condition (expression 1 textbox):
apex_application.g_excel_format = FALSE
2. create a new column for your Y/N values and make it conditional - PL/SQL expression in the condition (expression 1 textbox):
apex_application.g_excel_format = TRUE
Denes Kubicek
http://deneskubicek.blogspot.com/
http://www.opal-consulting.de/training
http://apex.oracle.com/pls/otn/f?p=31517:1
------------------------------------------------------------------------------ -
Problem in exporting report in CSV format
Hi All,
I am using Crystal Reports. Following are details about it:
CR Developer
Product 8.5.0.217
*_Problem that I am facing:__*_
I can create report in .rpt format, it is working fine here. But while trying to export this report in CSV format, it gives report that doesn't contain any information.
Is it because I am missing something or it is a known issue?
Thanks and Regards,
AnandHi,
I too am facing the same problem.
The report was made in 8.5. I have exported the report & opened it in Crystal report 12.
I can export to PDF, RTF, DOC & Tab separated Test.
However when I export this report in .csv (legacy mode) I just get the header & when I export it in .csv (Standard) I get a blanck .csv file.
I have checked 'Isolate Report/Page sections' and 'Isolate Group sections'. Still no data in the report.
refreshed it too.
I contains sub reports, but not in the page header & footer (I think) & it does not seem to have cross tabs & OLAP grids.
Any help is appreciated.
Links to Screenshots:
Main Report:
http://picasaweb.google.com/lh/photo/yM9sBexKt5jW9soqaMmHjw?feat=directlink
One of the Sub-Report:
http://picasaweb.google.com/lh/photo/0ofa5sABakvZ-nFZp-JSMw?feat=directlink -
Problem while exporting a report using CSV
Dear friends / experts ,
after successful genration of report my end users want to export that report i.e
while exporting a report in portal using " Export CSV" option , am getting CSV file as semicolon ( seperated instead coma(,)
please help me where can i change those settings to achive this CSV file with coma separated.
thanks in advance..
regards
anandCheck the below link
http://help.sap.com/saphelp_smehp1/helpdata/en/d2/11a28fc26d4042a6d230a9783152f2/content.htm
[Steps to change the delimiter in csv export WAD or portal|http://forums.sdn.sap.com/thread.jspa?threadID=1988651]
To set the field separator, go to SPRO and choose
-> SAP Reference IMG
-> SAP Customizing Implementation Guide
-> SAP NetWeaver
-> Business Intelligence
-> Links to Other Source Systems
-> Connection Between Flatfile and BI System
-> Set options for uploading flat files
Regards
KP
Edited by: Konduru Prashanth. on Feb 29, 2012 3:13 PM -
How to export Bi Publisher report into .csv file in different sheets?
Hi,
I have a report request in BI Publisher to generate the results in different tabs in Excel format with headings etc.
But the users are now asking for the same report in .csv format with the same number of tabs in one file.
Can I do that in .csv file?
Regards
SailajaCan I do that in .csv file?
no
csv is simple plain-text
A comma-separated values (CSV) (also sometimes called character-separated values, because the separator character does not have to be a comma) file stores tabular data (numbers and text) in plain-text form. Plain text means that the file is a sequence of characters, with no data that has to be interpreted instead, as binary numbers. A CSV file consists of any number of records, separated by line breaks of some kind; each record consists of fields, separated by some other character or string, most commonly a literal comma or tab. Usually, all records have an identical sequence of fields.
Comma-separated values - Wikipedia, the free encyclopedia -
Strange characters in report .csv export
Hello,
When I enable .csv export in my report, a name like Chiràc Jaqués apears as Chirèc Jaqués in the csv.
I understand it has to do with charactersets but I don't know how to solve it.
Cheers
JacobJacob,
go to:
Shared Components>Edit Globalization Attributes
and set the
Automatic CSV Encoding
to "YES".
Denes Kubicek
http://deneskubicek.blogspot.com/
http://www.opal-consulting.de/training
http://htmldb.oracle.com/pls/otn/f?p=31517:1
------------------------------------------------------------------- -
How to export report IN CSV format through JAVA.
how to export report in csv format.when try to export in csv format.its exporting into csv but report not containing column heading , report heading and it showing all the data in a single line.we have integrated the reports with java.
Use a Java API which can create PDF files based on some collection of plain vanilla Java objects (List, String, Number, etc).
Google can find them all. Just feed it with something like "Java PDF API" or so. A commonly used one is iText.
That said, when talking about this in JSP context, ensure that you do NOT write raw Java code in JSP files using scriptlets. Raw Java code belongs in Java classes. In such case you need a Servlet. In JSP just use taglibs and EL to interact with backend Java code and data. Scriptlets are discouraged since over a decade. -
Export query results to a CSV file
Hi,
My requirement is I need to export the results of a query to a CSV file. Can anyone please suggest a way to include the column names also in the CSV file?
Thanks in advance.
AnnieFollowing code is from asktom. I have modified to include column heading. This will get your desired CSV file for a given query.
create or replace function dump_csv( p_query in varchar2,
p_separator in varchar2
default ',',
p_dir in varchar2 ,
p_filename in varchar2 )
return number
AUTHID CURRENT_USER
is
l_output utl_file.file_type;
l_theCursor integer default dbms_sql.open_cursor;
l_columnValue varchar2(2000);
l_status integer;
l_colCnt number default 0;
l_separator varchar2(10) default '';
l_cnt number default 0;
l_colDesc dbms_sql.DESC_TAB;
begin
l_output := utl_file.fopen( p_dir, p_filename, 'w' );
dbms_sql.parse( l_theCursor, p_query, dbms_sql.native );
for i in 1 .. 255 loop
begin
dbms_sql.define_column( l_theCursor, i,
l_columnValue, 2000 );
l_colCnt := i;
exception
when others then
if ( sqlcode = -1007 ) then exit;
else
raise;
end if;
end;
end loop;
dbms_sql.define_column( l_theCursor, 1, l_columnValue, 2000 );
l_status := dbms_sql.execute(l_theCursor);
dbms_sql.describe_columns(l_theCursor,l_colCnt, l_colDesc);
l_separator := '';
for lColCnt in 1..l_colCnt
loop
utl_file.put( l_output, l_separator || '"' || Upper(l_colDesc(lColCnt).col_name) || '"');
l_separator := p_separator;
end loop;
utl_file.new_line( l_output );
loop
exit when ( dbms_sql.fetch_rows(l_theCursor) <= 0 );
l_separator := '';
for i in 1 .. l_colCnt loop
dbms_sql.column_value( l_theCursor, i,
l_columnValue );
utl_file.put( l_output, l_separator || '"' ||
l_columnValue || '"');
l_separator := p_separator;
end loop;
utl_file.new_line( l_output );
l_cnt := l_cnt+1;
end loop;
dbms_sql.close_cursor(l_theCursor);
utl_file.fclose( l_output );
return l_cnt;
end dump_csv;The original link is below.
http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:95212348059
Thanks,
Karthick. -
Scheduling a webi report and export the result in PDF on local disk
I'm working with the new SDK to schedule a report and export its result on my local c:\ hard disk drive. My code give no errors at run but I do not find the file on my root.
The Instance counter of the report increase each time, so there is a refresh.
Is something wrong in the following lines? I just follow the examples give in the documentation for scheduling.
Thanks in advance !
Here is my code :
Destinations oDestinations = Destinations.Factory.newInstance();
Destination[] oDestination = new Destination[1];
oDestination[0] = Destination.Factory.newInstance();
oDestination[0].setName("CrystalEnterprise.DiskUnmanaged");
DiskUnmanagedScheduleOptions diskOptions = DiskUnmanagedScheduleOptions.Factory.newInstance();
String[] destinationFile = new String[1];
destinationFile[0] = "c:\\" + report_name + ".pdf";
DestinationFiles destinationFiles = DestinationFiles.Factory.newInstance();
destinationFiles.setDestinationFileArray(destinationFile);
diskOptions.setDestinationFiles(destinationFiles);
oDestination[0].setDestinationScheduleOptions(diskOptions);
oDestinations.setDestinationArray(oDestination);
System.out.println("Getting report...");
ResponseHolder respons = this.platform.get("path://InfoObjects/<path to report>/" + report_name, null);
InfoObjects reports = respons.getInfoObjects();
if (reports == null)
return;
Webi myReport = (Webi)reports.getInfoObjectArray()[0];
System.out.println("Getting scheduling info...");
SchedulingInfo schedulingInfo = myReport.getSchedulingInfo();
boolean newSchedulingInfo = false;
if (schedulingInfo == null)
schedulingInfo = SchedulingInfo.Factory.newInstance();
newSchedulingInfo = true;
System.out.println("Setting scheduling info...");
schedulingInfo.setRightNow(Boolean.TRUE);
schedulingInfo.setScheduleType(ScheduleTypeEnum.ONCE);
schedulingInfo.setDestinations(oDestinations);
WebiProcessingInfo webiProcessingInfo = myReport.getWebiProcessingInfo();
if(webiProcessingInfo == null) {
webiProcessingInfo = WebiProcessingInfo.Factory.newInstance();
WebiFormatOptions webiReportFormatOptions = webiProcessingInfo.getWebiFormatOptions();
if(webiReportFormatOptions == null)
webiReportFormatOptions = WebiFormatOptions.Factory.newInstance();
System.out.println("Setting Format...");
webiReportFormatOptions.setFormat(WebiFormatEnum.PDF);
webiProcessingInfo.setWebiFormatOptions(webiReportFormatOptions);
myReport.setWebiProcessingInfo(webiProcessingInfo);
if (newSchedulingInfo)
myReport.setSchedulingInfo(schedulingInfo);
System.out.println("Schedule...");
this.platform.schedule(reports);
System.out.println("Schedule done...");Hi Jerome,
I have gon ethrough your code again and there we are missing the destination plugin.
We have to query the info store to get the disk unmanaged plugin.
Below is the code
IDestinationPlugin destPlugin = null; //Destination plugin returned by InfoStore Query
IDiskUnmanagedOptions diskUnmanagedOptions = null; //Object returned by the getSchedulingOptions() method
List listDestination = null; //List object to hold destination file location
IDestination destination = null; //Destination Interface
//retrieve the Scheduling Options and cast it as IDiskUnmanagedOptions
//This interface is the one which allows us to add the file location
//for the scheduling
for(int i = 0; i< oInfoObjects.getResultSize();i++)
oInfoObject = (IInfoObject) oInfoObjects.get(i);
destPlugin = (IDestinationPlugin)iStore.query( "SELECT * from CI_SYSTEMOBJECTS WHERE SI_PARENTID=29 and SI_NAME='CrystalEnterprise.DiskUnmanaged'").get(0);
diskUnmanagedOptions = (IDiskUnmanagedOptions) destPlugin.getScheduleOptions();
listDestination = diskUnmanagedOptions.getDestinationFiles();
String dest = "c:\\";
listDestination.add (dest + oInfoObject.getTitle()+".pdf");
schedInfo = oInfoObject.getSchedulingInfo();
schedInfo.setRightNow(true);
schedInfo.setType(CeScheduleType.ONCE);
//retrieve the IDestination interface from the SchedulingInfo object
//use the setFromPlugin() to apply the changes we made to the
//IDestinationPlugin object returned from the IStore
destination = schedInfo.getDestination();
destination.setFromPlugin(destPlugin);
iStore.schedule(oInfoObjects);
Regards,
Prithvi -
Crystal report 8.5 export to csv and rtf format not working with office 2013
Hi Experts,
Crystal report version 8.5 hangs and eventually crash when i export my report to csv or rtf format on windows 7 with office 2013 installed, code is written in VB 6 although the same scenario is working with office 2010 installed.
i debugged the code and found the application hangs at function Report.Export(False).
below is the code snippet
.PDFExportAllPages = True 'ePDFExportAllPages
.PDFFirstPageNumber = ePDFFirstPageNumber
.PDFLastPageNumber = ePDFLastPageNumber
.RTFExportAllPages = True 'eRTFExportAllPages
.RTFFirstPageNumber = eRTFFirstPageNumber
.RTFLastPageNumber = eRTFLastPageNumber
.UseReportDateFormat = eUseReportDateFormat
.UseReportNumberFormat = eUseReportNumberFormat
.UseReportNumberFormat = eUseReportNumberFormat
.XMLAllowMultipleFiles = eXMLAllowMultipleFiles
.XMLFileName = eXMLFileName
Report.Export (False) ----Application hangs here and eventually crash
Looking forward for your help, as it is very urgent
Regards
MohitHi Mohit
CR 8.5, being about 15 years old, does not support Windows 7. I am surprised this works for you with MS Office 2010 and to be honest, I'd consider my self lucky there. The fact that is does not work with office 2013... well, like I said, lucky with Office 2010 and your luck ran out with Office 2013.
Your option; rewrite the app in VS 2010 / 2012 / 2013 and use the CR Assemblies for VS .NET from SAP Crystal Reports, Developer Version for Visual Studio .NET. The CR Java SDK would be another option.
- Ludek
Senior Support Engineer AGS Product Support, Global Support Center Canada
Follow us on Twitter
Maybe you are looking for
-
I'm new to PHP and I'm having a few problems. I've put together a script to process an HTML form and I need it to capture the names of all 'checked' checkboxes within my form and exclude all unchecked data. I know i must be doing something stoopid bu
-
When you open Edit, there are two choices: Web form and annotated. What is the difference? Then, there are fields for Host, Submit Prefix, Username, Password, etc. How do you fill in these fields? When you click to have the manager "Guess from Curren
-
Sharing custom classes between different projects
I'm using different projects as modules for a main application. I'm trying to use a custom class to share data between the modules. I've been unable to share the custom data's variables. Can this be done? Thanks for the help!! Carlos
-
This device is not eligible for the requested build
I am getting an error message when trying to update my iphone to the latest software version. The error message says "This device is not eligible for the requested build"
-
Is iphone 5 sold in india different in quality from UK Iphone?