List Navigation does not go back to first page

List Navigation does not go back to first page

  

Hello,


I have a table that has a source record from a list. The way this list is populated is when I enter a search term and press enter.

I manually added a list navigation to it and linked up everything as follows :

ListWidgetId = TableRecords1.Id

LineCount = TableRecords1.LineCount

TotalRowCount = List.Length


On my table :

StartIndex = List_Navigation_GetStartIndex(TableRecords1.Id)

It works well when I search for a term the first time. The next time, it will be stuck on whatever page I was on previously and not go back to 1. 

Please help

Hi Amos,

Please try this,

StartIndex = List_Navigation_GetStartIndex(TableRecords1.Id,true)

Regards,

Swaroop

Swaroop Mutalik wrote:

Hi Amos,

Please try this,

StartIndex = List_Navigation_GetStartIndex(TableRecords1.Id,true)

Regards,

Swaroop

Sorry, It doesn't work. It seems like this is an Outsystems issue? 


Amos Jian wrote:

Swaroop Mutalik wrote:

Hi Amos,

Please try this,

StartIndex = List_Navigation_GetStartIndex(TableRecords1.Id,true)

Regards,

Swaroop

Sorry, It doesn't work. It seems like this is an Outsystems issue? 


Can you please share with us the oml file for that, if possible?

Regards,

Swaroop

Swaroop Mutalik wrote:

Amos Jian wrote:

Swaroop Mutalik wrote:

Hi Amos,

Please try this,

StartIndex = List_Navigation_GetStartIndex(TableRecords1.Id,true)

Regards,

Swaroop

Sorry, It doesn't work. It seems like this is an Outsystems issue? 


Can you please share with us the oml file for that, if possible?

Regards,

Swaroop

This is another oml that I did for the training and it has the same effect. If I go to Bookings and go to page 3 and then I search for a name, it won't go back to the first page. The link is here

https://amosjian.outsystemscloud.com/Bookings/Entry.aspx?_ts=636105813130315419


Solution

Hi Amos,

You need a add logic to reset Pagination and Filters to achieve the functionality what you want, I am attaching my oml file which i did for training.

Please refer to "RefreshBookingTable" action in Bookings page.

Regards,

Swaroop

Solution

Swaroop Mutalik wrote:

Hi Amos,

You need a add logic to reset Pagination and Filters to achieve the functionality what you want, I am attaching my oml file which i did for training.

Please refer to "RefreshBookingTable" action in Bookings page.

Regards,

Swaroop

Thank you!


Amos Jian wrote:

Swaroop Mutalik wrote:

Hi Amos,

You need a add logic to reset Pagination and Filters to achieve the functionality what you want, I am attaching my oml file which i did for training.

Please refer to "RefreshBookingTable" action in Bookings page.

Regards,

Swaroop

Thank you!


You are most welcome,please keep posting for any issues

Regards,

Swaroop