Saturday, March 2, 2013

Customizing the Columns of a Pivot Table


1. Add the pviot table to the page.

2. Add varStatus and var attributes to dvt:pivotTable. Add dvt:dataCell, a switcher and configure as below

3. You can add a button, link etc.


4. Download the complete example here.

Note: If you are using export, the switcher component does not work. Add rendered property ( rendered="#{cellStatus.cellIndex.column==0} ) to control the values exported.

1 comment:

  1. Dear I want to display some row column at end of data like.

    StudentName,StudentID,quiz1,quiz2,quiz3,extraMarks,AdjustmentMarks

    quiz1,quiz2,quiz3

    is matrix column and i want to display single value column aster matrix column can u help me

    ReplyDelete

Related Posts Plugin for WordPress, Blogger...