data-export

primefaces data exporter XLS exporting only headers not rows

五迷三道 提交于 2020-02-16 04:21:26
问题 My problems is that when I click in the button to export data table, It exports only columns headers, my excel file is generated with none rows. <h:form> <p:dataTable id="cteTable" var="cte" emptyMessage="Nenhum Registro Localizado" reflow="true" value="#{extratorBean.ctes}" paginatorTemplate="{CurrentPageReport} {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {Exporters}" style="margin-top: 10px" paginator="true" rows="100" scrollable="true" scrollWidth="1024px">

How to Export only selected columns using columnToggler

谁都会走 提交于 2020-01-06 02:29:07
问题 Here I am using dataExporter for my table in primeFaces, It is successfully exported in type="xls" but the problem is that in addition I am using columnToggler for selection of columns and i want to target only those columns for export in xls file, those are checked/selected in columnToggler like: here is code of my dataExporter which targeted my table (id = "tbl"). <h:commandLink> <img src="Resources/images/excel.png"/> <p:dataExporter type="xls" target="tbl" fileName="dailyPoolReport_#

PHP Library to convert JSON to CSV?

独自空忆成欢 提交于 2019-12-30 04:33:08
问题 I've got a JSON service and need to create a script to export data to CSV files. Does anyone have a method or library you can suggest to migrate JSON to CSV format? Here's an example format though I expect to have to retro-fit the solution to work with it: {"service_name": { key : value, key : value....} } or: {"service_name": [ { key : value, key : value....}, ... ] } 回答1: i generally agree with the commenters, but if you're data is prepared this way, isn't this pseudo-code all you need?

How to export DateTime, TimeSpan, string and double values to Excel from WPF MVVM application?

给你一囗甜甜゛ 提交于 2019-12-25 07:59:48
问题 In my WPF MVVM Prism application I read some data (via COM-port) from outer device each second (I use System.Windows.Threading.DispatcherTimer for it). Each time I fill the following buffer with the data read: /// <summary> /// Represents the point on the chart. /// </summary> public class ChartPoint { #region Fields // The value from outer device. private double _value; // The date and time when the value was being obtained. private DateTime _category; #endregion #region Constructors public

Oracle, Blob data are missing in my export file

心已入冬 提交于 2019-12-23 09:39:33
问题 I use Oracle 11g, I am trying to export my data(only the data, not table create scripts etc.) So it can be imported by customer to their database When I use Oracle Sql developer's export database, it only exports the data but my BLOB's are missing! There are a lot of image files in one of my tables which I want to export as well. I wonder If I really need to use oracle exp imp tool; http://docs.oracle.com/cd/B28359_01/server.111/b28319/exp_imp.htm#i1004777 Any idea? 回答1: From the

PrimeFaces DataExporter for big data

萝らか妹 提交于 2019-12-13 00:08:45
问题 I have 65000 data for getting from DB into excel.But PF DataExporter component is not writing big data into the excel.What can I use for this process?Is there a library for this process? 回答1: You can use: Apache POI Some examples - Quick guide very easy to use and excellent simple examples Jasper reports Just link - needs some time to figure it out If you need just one excel export, use Apache POI. If you have a lot of reports, i would recommend you to use Jasper reports because you can have

Primefaces DataExporter Set Table Columns Width

末鹿安然 提交于 2019-12-10 13:08:05
问题 I have a Primefaces DataGrid that I export whith Primefaces DataExporter but I can't figure out how to resize the columns. I added a preporcessor <p:dataExporter type="pdf" target="tbl" fileName="cars" preProcessor="#{customizedDocumentsView.preProcessPDF}" /> And this is the code in my bean public void preProcessPDF(Object document) { Document pdf = (Document) document; pdf.open(); pdf.setPageSize(PageSize.A4); //I need to do something like that //PdfPTable table = new PdfPTable(4); //float[

Issue with Primefaces p:dataExporter, which exports a DataTable with SelectOneMenu not as expected?

本小妞迷上赌 提交于 2019-12-08 13:43:23
问题 I want to Export the <p:dataTable> which has a SelectOneMenu as shown in this Example JSF Primefaces SelectOneMenu So, i used the primefaces <p:dataExporter type="xls" target="datatbleId" fileName="cars"/> which generated a xls file as the below format: ------------------------------------ Name | Car ---------------------------------------- ABC | 1 DDD | 2 What should i do ? So, that i can generate a xls in the below format : ------------------------------------ Name | Car -------------------

Dataexporter returns empty rows after filtering

人盡茶涼 提交于 2019-12-08 09:19:50
问题 I have a datatable in my xhtml view with filtering enabled. Additionally, there's the Primefaces export (for Excel) function in the context menu. When I use this function without filtering the datatable it works fine, but when I filter first and den export the data I get a file with empty rows. This is my code: <p:panel header="#{msg['prs.list']}"> <p:contextMenu for="persons"> <p:menuitem value="#{msg['com.view']}" icon="#{msg['icon.view']}" action="#{personBean.redirectToEditPerson}"/> <p

How to dump an entire SQL Server 2014 database into a file, to be imported into a Postgres database?

假如想象 提交于 2019-12-04 05:14:56
问题 I have a SQL Server 2014 database from which I need to dump just the table data (no indexes, stored procedures, or anything else). This dump needs to be imported into a Postgres 9.3 database "as-is". What id the proper command line to create such a dump? 回答1: I must admit, this is more sort of a joke... You should rather follow the hint to use "Export" and write this to some kind of CSV. Just for fun: EDIT: create a column list to avoid binary columns... columns, which are not directly