46
Views
3
Comments
Refresh aggregate with input

Hi everyone,

I have this problems where I want to make a page where people could buy something and add it to cart.

this is the current situation. On the input I assign the variable from the aggregate of products.

The problems comes when go to other page with pagination. I want the input to stay the way it was when edited but if I go to another page the number that I gave on the earlier page has gone. I want the number to stay.

If I go to page 2 the number 3 that I already input in the first page will gone.
I understand that this is the result of refreshing the aggregate where the pagination use refresh aggregate to go to another page. That's why the number keep disappearing every time I go back.
Is there another way around to make the input to stay the way It was edited when I go to another page? or is it impossible to do.


Thank you guys.

2025-12-12 06-45-53
Nandhakumar Sureshbabu

Hello Raven, 

You can use the Client Variables by appending the values using commas or any other delimiter and then while fetching those values, delimit them and fetch it as list or else you can utilize the entity by storing those values in it, using the crud operations whenever the value is changed ("But using the crud operation is not the optimized way").

Hope it helps.


Regards,

Nandhakumar S.

2025-12-12 06-45-53
Nandhakumar Sureshbabu

Hello Raven, 

I've executed your expectation with my solution, and it works fine. As I said, using the entity method is not the best practice, but I've executed both the methods.

I've attached the screen recording. Due to some size limitations, I've posted the OML file as a different comment. Kindly, take a look.

If you've any queries feel free to ask, Hope this helps.


Regards,

Nandhakumar S.

EntitMethod - Profile 1 - Microsoft_ Edge 2023-06-06 13-36-31.mp4
2025-12-12 06-45-53
Nandhakumar Sureshbabu

Due to the size issue, I've attached the OML file here.

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