21
Views
6
Comments
Pagination using a record list session variable
Question
Hi,

I have a screen with a Table Record using a record list from session.
The pagination is not working. What do i have to do to make it works?

thanks.
2022-11-12 11-28-30
Gonçalo Martins
Staff
Hi Victor,

First of all, you should avoid the usage of record lists in a Session Variable because it's very bad for performance.
Take a look at these documents:

I'm sure you'll find a better way to implement your issue ;)

Kind Regards,
Gonçalo Martins
2023-05-03 10-22-17
Victor Salvalagio Pereira
Gonçalo,

I have to use a record list in session. 
My screen has a master-detail that can't be persisted to the database every time I add a new record.
That's why i keep insession, and the user click in "save" to save all of the records.
2022-11-12 11-28-30
Gonçalo Martins
Staff
Hi Victor,

Since you're saying that you need to work with the session variable, can you give more information about your implementation or upload an oml with an example with the way you're implementing it..

Kind Regards,
Gonçalo Martins
2023-05-03 10-22-17
Victor Salvalagio Pereira
Gonçalo Martins wrote:
Hi Victor,

Since you're saying that you need to work with the session variable, can you give more information about your implementation or upload an oml with an example with the way you're implementing it..

Kind Regards,
Gonçalo Martins

Gonçalo 

I'm uploading an oml with an example.

Thanks.
SessionPagination.oml
2020-06-08 12-45-16
Paulo Garrudo
Staff
Victor,

please replace the start index value of your table record, it should be List_Navigation_GetStartIndex(TableRecords1.Id, True) and not 0.

Regards,
Paulo Garrudo
2023-05-03 10-22-17
Victor Salvalagio Pereira
Paulo,

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