Primefaces datatable do not show right columns after toggle action - jsf-2

i have primefaces datatable component with Paginator and ColumnToggler.
Everything works fine until toggle-off some columns and change page. Then columns which should be hidden are not mentioned in datatable header (this is ok), but data are still here. So datatable header is shorter than rest of datatable and columns do not shown under their headers. Primefaces version is 5.2.
Did someone face the same problem? What do you recommend to try/check?
Example:
Let's say that we i have table with 5 columns.
Id
Color
Name
Type
Price
In this table is about 100 records. One page shows 10 records so we have 10 pages. When we use ColumnToggler and 'toggle-off' price and type column. This will cause that these two columns will disappear. Problem occures if we choose different page via Paginator or just try change number of records showed on one page. After these operation i will get 'broken' table. Header of table will contains only first 3 columns (Id,Color,Name). This is ok, because last two columns should be hidden. So table header is filtered well. Problem is that table body contains all columns so also columns for Type and Price.
Unfortunatelly i can not provide screenshots because of character of data.

Related

jsPDF brings previous print information

I have this unformatted table link that has 3 rows and 2 columns. The second column has a barcode generated from the information in the first column
When changing the table model, removing some columns: PDF generation happens like this: link overwriting only the information that changed and keeping "dirt" from the previous generation.
Anyone knows what's going on?

Setting up default GridSortOrder with Vaadin8 and new Grid doesn't work

Our former solution based on Vaadin 7 Grid used multicolumn sorting. Data is sorted by backend database but we have to maintain visual infomation about sorting in column headers. Visualy it displays as small rectangles in column header.
Now with Vaadin 8 and new Grid, our data is, by default(by database), sorted by 'name' column so I'm defining default sort order for Grid using code as below. It seems to be straightforward but it doesnt show up on Grid. I can define GridSortOrder for one or two columns with no luck. Can't see anything on screen (in column headers). Any idea how to accomplish this properly?
List<GridSortOrder<Map>> orders=new ArrayList();
orders.add(new GridSortOrder<>(colName,SortDirection.DESCENDING));
grid.setSortOrder(orders);

TableSorter filter - remove all rows with a given keyword

I am displaying a table with tablesorter that has column filtering and would like to add a button that would remove all rows in which the word "error" appears in a certain column. I managed to create a button that would essentially just throw
!error
to the filter but I would prefer that it leaves the filter field open so that one can still use it and retain the removal of the error rows.
I tried the method from TableSorter - External Search, Trying to search from button to filter all, not just column but while it can find all the columns with "error", putting "!error" doesn't work since even a row that contains "error" also has columns that don't contain it. Anyone know of a way to hide those rows while still retaining the filtering ability on the remaining rows?
A not (!) query applied to all columns was previously ignored; but tablesorter v2.26.2 was just released and it now allows those type of search queries.
Try this demo - click on the !aaron button to test it.

how to report column across not down in crystal report

I need create a crystal report to report the column across not down. The report itself is very simple, there is no need to group and summarize. The only thing is different from regular report is it need display the column across rather than down. I try use cross-tab, or multiple columns with no success. is there any way i can make is down in crystal? Thanks
The regular report with column down:
I need display like these:
try the following
put the the 4th names of the first column in the page header and make that section underlay the following section, then create 4 details sections, one per column and put the values values right next below and make the details to grow across then down.
for instance
page header
Mth
Vendor
Trans#
Amt
end of page header
details1 date field
details2 vendor field
details3 trans field
details4 amt field

Sum up a calculated column's values for each user in Sharepoint 2007?

I've been looking around for quite some time, and I'm not entirely sure how to accomplish this in Sharepoint 2007.
I'm trying to create a web part view that takes the entries of a particular data source, groups the entries by the user, and then sums up a calculated column from said source.
I've found similar tutorials online about creating the web part views and making calculated columns; however, I can't figure out how to sum up the columns for each user listed.
Any ideas?
If you are using a List View Web Part, modify your view by selecting "Modify this view" in the view-picker (drop down list at the top right of the web part).
On the view settings page, expand the Group By section and specify which column(s) you will group by. Expand the Totals section and select which aggregations you want to perform on which columns.
Click OK.
The results are overall totals at the top of the column, and group totals above each group.

Resources