Enabling pagination on a subcollection
To enable pagination on a subcollection:
-
Perform one of these steps:
- In the Windows client, open the form that you want to modify, then go into Design Mode.
- In the web client, launch the Web Designer, then open the form that you want to modify.
-
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 Component > Properties > Data Source > Binding property, click the ellipses (…) button.
- In the Edit Component Data Binding > Type field, select Subcollection Grid.
- Click Edit.
-
In the Edit Collection Specification for Subcollection > Advanced Options section, perform these steps:
- Specify the Record Cap Override value.
- Click the Enable Paging? check box.
- Click Set LinkBy.
- In the Edit LinkBy Specification > Parent Property and Child Property fields, select CollectionName.
- Click Add.
- Click OK.
- Click OK twice.
-
Add events for each button:
Button Event Previous GotoPrevPageSub Go to page GotoPageSub Next GotoNextPageSub - Click Save.
- Reset IDO cache, if necessary.
- Test the form.