AnsweredAssumed Answered

Pagination in report !!!

Question asked by g_rathod on Apr 28, 2008
Friends,

I have customized reports facility in which I want to add my pagination , just like what show users in admin works.
since users are not input no. of records to be shown. but it is fixed say 10 rows.

and my report showing audit informations..  ( like document name, username, accessedTime etc etc)

I m confusing using richList


<a:richList id="audit-report-list" binding="#{ReportBean.reportRichList}" viewMode="details" pageSize="10"
styleClass="recordSet" headerStyleClass="recordSetHeader" rowStyleClass="recordSetRow" altRowStyleClass="recordSetRowAlt" width="100%"
value="#{AuditReportBean.data}" var="r" initialSortColumn="" initialSortDescending="false">

because our columns comes dynamically as per reports selected.

we are getting like following :

<%
   AuditReportBean auditReportBean = ReportBean.getReportBean().getAuditReportBean();
   if (auditReportBean != null)
      {
%>
   
   
      <table align="left" border="1">
         <tr>

<%
      String[] columns = auditReportBean.getColumns();
      for (int i = 0; i < columns.length; i++) {
%>
            <td align="center"><%= columns[i] %></td>
<%
      }
%>
         </tr>
<%
      List<String[]> data = auditReportBean.getData();
      for (Iterator iterator = data.iterator(); iterator.hasNext();) {
         String[] row = (String[]) iterator.next();
%>
         <tr>
<%
         
         for (int i = 0; i < row.length; i++) {
%>
            <td align="center"><%= row[i]%></td>
<%
         }
%>
         </tr>
<%
      }
%>

      </table>
   
<%
   }
%>

anyHELP …

Outcomes