58
Views
4
Comments
sever side pagination in data grid reactive
Question
Application Type
Reactive

How to implement server side pagination on data grid in reactive application ?


2023-03-16 16-29-51
Paulo Rosário

Hello Ravichand G Y,

Are you using an Advance SQL Querry or an Arrgagate? 

Best regards 

Paulo Rosário

2022-01-08 08-12-34
Ravichand G Y

Hi paulo , 

 I’m using  aggregate 

2023-03-16 16-29-51
Paulo Rosário

You will find all the documentation needed on this link to show you the necessary steps to accomplish server-side pagination with Data Grid.

Hope it helps! 

Paulo Rosário 

UserImage.jpg
MAJED AlANAZI

To manage server-side pagination effectively, you can utilize Advanced SQL Queries. Here's how you can do it:


  1. Create a Server or Service Action with two input parameters and two outputs:
    • StartIndex (Integer) Input
    • MaxRecords (Integer) Input 
    • TotalCount (Long Integer) Output
    •  YourStructure (List) Output 


  2. Example Query:
    SELECT {EntityName}.*FROM {EntityName}
    WHERE ({EntityName}.[Attribute] = 1)
    ORDER BY {EntityName}.[Attribute] ASC
    OFFSET @StartIndex ROWS
    FETCH NEXT @MaxRecords ROWS ONLY


  3. Utilize this action in the pagination UI component provided by OutSystems.
  4. Handle the UI functionality:
    • Initially set StartIndex = 0 and MaxRecord = 10.
    • When the user clicks "Next", update StartIndex as StartIndex = MaxRecord + 1.

This setup enables efficient handling of server-side pagination, ensuring smoother navigation through large datasets.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.