Skip to Content
0
Former Member
Aug 04, 2012 at 09:55 AM

Update data from table of node

18 Views

Hi,

I have the below scenario:

1. A table is binded to my node in editable mode.

2. There is an option of adding/deleting new records/rows in the table.

3. Now, whenever there is an action - Add/Delete, it has to be updated in Infotype on click of Save button.

4. User can add upto 100 rows of data.

Whenever the new data is entered, we have to update that in the infotype, and when there is a deletion, we have to delete the same from infotype.

Question:

How do I match which record has been added/deleted? Should I create a new node of same type and set it with Initial data, and do the comparison later when the user has modified the table? If yes, this will be a huge loop of comparing and infotype will be updated at every loop, considering the addition/deletion.

please suggest if there is a better way to do it?

thanks in advance

prateek