Problem with Datagrid Paging in WDK

ro3er
edited September 28, 2008 in Documentum #1

Hi,

I am having some problems with using the pagination feature of the datagrid. My code is as follows:

<dmf:datagrid name='fileListGrid' cellspacing='1' cellpadding='2' bordersize='0' paged='true' pagesize='5'>

<!-- databound controls -->

<dmf:datagridRow >

<dmf:celllist fields='object_name'>

<!-- field specific cell template -->

<dmf:celltemplate field='object_name'>

<td>

<dmf:link name='lnk' onclick='onViewSioAttachment' datafield='CURRENT'>

<dmf:argument name="objectId" datafield="r_object_id"/>

</dmf:link>

</td>

</dmf:celltemplate>

<!-- generic cell template (matches ALL remaining fields) -->

<dmf:celltemplate>

<td>

<dmf:label datafield='CURRENT'/>

</td>

</dmf:celltemplate>

</dmf:celllist>

</dmf:datagridRow>

<!-- footer row containing paging controls -->

<tr height='24'>

<td colspan='10'>

<dmf:datapaging name='pager1'/>

</td>

</tr>

</dmf:datagrid>

In the onRender method of my java file

-


fileGrid = (Datagrid) getControl("fileListGrid", Datagrid.class);

fileGrid.getDataProvider().clearResults();

fileGrid.getDataProvider().setDfSession(dfSession);

fileGrid.getDataProvider().setQuery("select r_object_id, object_name from object_name NOT like '%.pdf'" );

Somehow, I did not manage to navigate from one page to the other. Am I missing something here? Thanks in advance.