128
Views
3
Comments
How to only refresh one row in a table according to static value?
Application Type
Reactive

Hello,


I have a block with a table containing 3 columns. The first shows the records from a static entity. The second has a dropdown field for the user to select multiple options and the third has a Save button.

The dropdown field has an aggregate as a source for the 'Selected Options' filtered by the 'ProjectID' and current TeamRole. The problem is that, when I save a row, if I refresh the table source, the list is refreshed and the options I just added to a row, are "multiplied" to the remaining rows, instead of each row only showing the options according to the team role on their current row.

If, when I save, I don't refresh the source, it doesn't even load any information (it's like the aggregate doesn't know which role the current row has...). The same happens when I enter the project to edit it. This block just doesn't load the dropdown field.


How can I solve this problem?

2021-03-18 21-03-15
Benjith Sam
 
MVP

Hi Ana,

To better understand your implementation and extend a help, can you share a basic oml version which includes the mentioned screen implementation?


Kind regards,

Benjith Sam

2024-09-27 19-05-42
Ravi Kumar Tasubilli

Hi Ana,

use the block in table rows or else you can pass the Roleid and Teammemberid to the server through Save on-click action.

in save on-click refresh the aggregate to get the result.

Regards,

Ravi

2024-09-12 02-43-38
Deepsagar Dubey

Hi @Ana Rita Sanches 

I am not sure, Do you want to save data in entity or just want to do some UI operation that will not save in database.

If save in database then there should be no issue all values came from entity.

if not saved in database then you find the Index of specific row and update/insert data on this specific index in your list so you don't need to call your table again.

I hope it'll help you

Thanks
Deep

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