29
Views
4
Comments
Pagination
Question
Application Type
Reactive

Hello Everyone,


I have a table where I fetch batch details (batch number, available quantity) along with an input field for consumption quantity. I am using pagination for this table. The issue is that when the user enters the consumption quantity for the first batch number in the table, and then navigates to page 2 to enter some other batch consumption qty, the entered consumption quantity for the batch becomes empty. I want to maintain the entered quantity so that I can save the consumption quantity for that batch .

can anyone help me to figure out this issue

regards

navitha

2026-02-16 05-51-10
Sahana K

Hi Male Navitha ,
Reason why it was not working:
When switching pages, OutSystems reloads the data from the aggregate to fetch records for the new page. This causes the UI to display only the newly fetched records, resulting in the loss of previously entered values. 

Solution:
Create a Local Variable 
Populate the Local Variable When Fetching Data 
Bind the Input Field to the Local Variable 
Update Local Variable on Input Change 

Thanks,
sahana

2016-04-22 00-29-45
Nuno Reis
 
MVP

If quantity is one for the entire table, you can do what Sahana said, or use a Client Variable.


If you need to save a quantity for each row, the solution can be to lazy load the data from the aggregate to a local list and pagination only changes what you see, not removing the values entered.

Or having a list of pairs Id/Quantity that you save into database as you go through the pages.

Other solutions can be created. It depends on number of rows fetched , displayed, changed...

2024-01-04 09-21-21
Venkatesaiya

Hi Navitha,
Please check the start index value you assign, Max records(number of records to fetch).please check this documentation  Pagination. May be it will helps you

2025-12-03 17-22-41
Lavanya Kamalaguru

Hi @Male Navitha,

Here is link to help with Pagination.

Could you please share your oml file.

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