How to paginate the table records in reactive web app?
I have created table and took pagination widget
Please follow the below steps.
1. Create Aggregate as per the need on the screen
2. Drag Table on the screen
3. Select the table source
4. Drag aggregate into the Table.
Step4 will create the pagination automatically. Without doing any thing extra.
thanks vivek
Hi Vivek, I tried above steps. But pagination doesn't get created automatically, although I was able to create pagination automatically through the steps explained by @João Marques
Hi Anjali,
You can use scaffolding so OutSystems generate this automatically for you. Even if you want something different, you can analyse the generated code to see how to use pagination.
To perform the scaffolding, you do the following:
1. Open a screen flow:
2. Navigate to the Data tab, and drag the entity you want to see a list records and drag it to the flow canvas, like in the example below with the Users table:
3. The output is a screen with a list of the records of the entity you used on step 2. (on my example, Users) with a working paginated version.
Kind Regards,João
Hi @Anjali Yadav ,
João explained very well using the OutSystems accelerator :)
If you want to learn how to do it without the accelerator, watch "Becoming a Reactive Web Developer" guide path the Pagination and Sorting module. In the exercise tab you have the Lesson Materials that explain how to add pagination either to a Table or a List .
Hope you enjoy!
Best Regards,
Bárbara Silva