Place previous and next buttons in a form to view the next data of the aggregate

Place previous and next buttons in a form to view the next data of the aggregate

  

I have a Form in my page that displays the current data of the aggregate

i need to place a button, after clicking the button it needs to display the next data in the form..



Solution

Hi,

One option you can do is load the data based on the index.

So in the preparation you can have it initialized to an index of 0, and you would get the item 0 of the list. (GetMGSAccount.List[Index])

When you press the Next you can add to the index and Get the next one, the same for the Previous but substracting.

I attached a test app that I quickly created to show you how this option could work.

Hope this is helpful,

Andres Moreno



Solution