Problem with Datagrid Paging in WDK
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.
Categories
- All Categories
- 107 Developer Announcements
- 53 Articles
- 104 General Questions
- 141 IM Services
- 43 OpenText Hackathon
- 32 Developer Tools
- 20.6K Analytics
- 4.1K AppWorks
- 8.9K Extended ECM
- 898 Cloud Fax and Notifications
- 76 Digital Asset Management
- 9.3K Documentum
- 29 eDOCS
- 118 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management