22
Views
5
Comments
Solved
Unable to update rows of the table in Reactive Form

Hello Everyone ,


I'm unable to update the rows of the table using reactive forms .

I'm able to update only the first row of the table .

I'm trying to update "UIRoleMap" Entity .

I have attached the following file .

Plzz help me in solving this problem .


Thanking You ,

Regards ,

Rahul Gupta

TableEdit.oap

Rank: #89
Solution

Hi Rahul,

I have checked you application and saw,

onchange event you are using only current value thats why you are able to update only first row,

you need to loop on list and update accordingly your condition.

see below image like this 


Or you can use onchnage event on row vise than your logic will work


Hope this will help you


Regards

Rahul

Rank: #388

Hi,

You missed the loop.

Rank: #648

Hi Rahul,

you need to consider the table record Id and the field as well against which you want to update your entity. As on the click of  every toggle you need to update the value for the same.

And you are using "On Change" into the table's event that why only 1st row is updated. 

I did all the changes for "Viewer" and "Maker"  you need to do the same for rest of the fields so please find the attachment.

Hope this will help you

Regards,

Vipasha

TableEdit.oml