How to make cross table in p:dataTable primefaces jsf? - jsf

I must make p:dataTable which have 6 columns and 3 permanent rows. Each of the row must have own name, it will be in first column and in the others columns, cells can be editing but this is not a problem. Is anybody know how to make that kind of table? I tried with p:panelGrid but it can't be editable. I post sample picture of that table. Thank you!
http://img89.imageshack.us/img89/6823/v94s.gif

Related

Get slicer selection of a data table

I have been struggling with this issue in the past days and haven't found yet any solution.
I have a simple table (not a pivot table) and some slicers attached to it. I want to 'simply' show selected value/values of the slicer in a cell. It implies of course to make the cell update automatically according to the selection.
Some of the solutions I found suggested using two pivot tables, one main for the regular data and the other hidden to capture the selected filters. The problem is that I am not working with a pivot table, but rather a simple table.
I also tried getting distinct values of the table column, but I couldn't perform it properly without getting the hidden values of the filtered table too.
Is there any way in Excel to do this simply?
Thank you!
You can follow the below steps to achieve your result
You will have to insert a serial number column in your table
After that insert the below formula above the header or anywhere you want to display the selected value
The formula in C2 is
=INDEX(Table1[Data 2],SUBTOTAL(5,Table1[S.No]))

Pivot table field headers unable to turn into row headers

I consider myself to be proficient in excel, VBA, and pivot tables. I can not figure out how to move the column header in a pivot table E.G. "P.O." from the column header into the row header. It is driving me nuts!!!!
For example.
I need "P.O." to be placed to the left of the P.O. number while the pivot table is in compact form. The "P.O." portion is discoverable only when I hover the mouse over the number when in compact form.
I have work arounds to make this work. I can use a number of formulas and get what I want, but I was hoping I could simply change a Pivot table option and acquire my desired format.
I saw a question like this without an answer. If it isn't possible to change the pivot table options, I will make a formula to do what i want. Thank you all in advance.

Show Text and number in a Pivot Table Values Area

I have a spreadsheet that I'm trying to convert to a pivot table. My issue is the Data(Value) section is a range of numbers (0-10) and text (intermittent, frequent, often). How can I accommodate both into my table?
sample data set (highlighted column):
http://govega.com/1.png
expected pivot table result:
Pivot tables cannot show text in the values area. Values are always aggregated. Text can be counted, but not displayed as is.
It's a shame you didn't include column headers in the data. What you want to achieve might be possible with a regular table and formulas, but with such vague info about the data structure, it's hard to tell. It looks like you have months across the second screenshot, so there must me some date column in the source data.
Please simplify the data for an example. Leave out columns that are not relevant, but please include data that is needed to arrive at the desired result. A few rows will suffice. What makes up the rows in the second screenshot? Are these people? Is it conceivable that any one cell in the grid will have values from two or more source data rows?
Please edit your question with these details and then I'll tidy up this answer.
Post a comment when you're done.

YUI3 Datatable - Drag and Drop columns, function getTbodyEl does not exist

I'm wondering how can I make the order of the columns sortable in a YUI 3 Datatable.
Following an example where rows are sortable I found that I have to create an instance of Y.DD to each row. Trying to do the same with columns, but the function getTbodyEl() does not exist.
Has anyone accomplished this? Help is appreciated
Y.DD is Drag and Drop. This would help only if you want to drag the columns to sort them.
This is one way of programmatically sorting the columns.
I haven't read the documentation for Y.DataTable, but you can sort the columns attribute, subscribe to the columnsChange event and then make the datatable re-render*.

How can I split a cell into two rows?

Please see the following picture. I don't know how to create two rows inside a single data cell in Cognos.
You can insert a table with 2 rows and a single column for the Version query item cell. Then you can populate the 2 rows with appropriate fields from Data Source.
Please find below screen shot where I inserted a table and populated fields in the 2 rows.
This report has been tested and runs fine.

Resources