Enabling pagination on a subcollection
You can enable pagination, or control of the number of records to be displayed, for the records of a subcollection.
- Open the form that you want to configure or modify in the designer (Web Designer in the web client, Design Mode in the Windows client.
-
Add these page control components:
- Page number field, for example: Page 1 out of 28
- Current page field
- Previous button
- Go to page button
- Next button
- Select the grid component where the subcollection is the data source.
- In the Data Source group of the Component properties sheet, select the Binding property, and then click the ellipses (•••) button.
- In the Type field of the Edit Component Data Binding group, select Subcollection Grid.
- Click Edit.
-
In the Advanced Options
field of the Edit Collection Specification for
Subcollection section, perform these steps:
- Specify the Record Cap Override value.
- Select the Enable Paging? option.
- Click Set LinkBy.
- In the Parent Property and Child Property fields of the Edit LinkBy Specification section, select CollectionName.
- Click Add.
- Click OK.
- Click OK twice.
-
Add the events for each button:
Button Event Previous GotoPrevPageSub Go to page GotoPageSub Next GotoNextPageSub - Click Save.
- Refresh the IDO metadata cache.
- Test the form.