18
Views
3
Comments
Solved
Table
Question

Hi Guys

I'm not including the OML because it's from the company

I have a table on screen in which I need it to update the pagination, however in the source of this table I placed a list type variable with the same type as the aggregate, it updates the information according to my query, however I placed the maxrecord in 4 and it doesn't recognize it and neither the pagination is working, I don't know if it's because I put a variable of type list in the source list. Could anyone help


Champion
Solution

Hi @fabiano Pinto ,

Yes it's because of variable of list type.

You set the 4 max record in the pagination but your listing containing all the records.

You need to hold only 4 records at a time in the list.

to achieve this you can create one more variable with the same list type and hold all data in this list and assign only 4 records in main list which is bind to table source and at the pagination click assign next 4 records and repeat this.

Regards,

Arun 

Hi Fabiano,

I hope you're doing well.

Regarding your issue, if you want to use the Pagination widget you need to create a local variable for the StartIndex and another for the MaxRecords. You need to use the Count property of your data fetch/aggregate.

On the Handler "PaginationOnNavigate" you need to assign the value of the NewStartIndex to your local variable StartIndex and refresh your data fetch/aggregate. 

Let me know if this solves your issue.

Cheers,

FC

Champion

Hi Fabiano,

Can you add some screenshots to understand better what you are doing?

Best Regards, Paulo Torres

Champion
Solution

Hi @fabiano Pinto ,

Yes it's because of variable of list type.

You set the 4 max record in the pagination but your listing containing all the records.

You need to hold only 4 records at a time in the list.

to achieve this you can create one more variable with the same list type and hold all data in this list and assign only 4 records in main list which is bind to table source and at the pagination click assign next 4 records and repeat this.

Regards,

Arun 

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