Hi,
I am using the afterChange event to update the dataset one row at a time. This works well provided the dataset stays in the same order as the load.
The issue that I run into is that the afterChange passes an ordinal position for the row in the “change” set, if the user has sorted the rows, they are no longer in the same order as the original load. So I have no way to find which record I should update.
and example :
on load the data row would be {“data”:[[6,“budget”,43446,’’]]}
after sort {“data”:[[4,“budget”,43446,’’]]}
Is there a way to inject an id into the change data object so I can identify the correct record?
haven’t we been talking about the same example on Github board or on emails? I have got the same demo and case a few days ago. Unfortunately, I cannot find it in my system.
Oh, then sorry. I guess that I must have seen something similar.
Can you share an example of an expected result as well? The result array of the afterChange hook maybe be less than expected but as we have triggered the change and got a result we can gather a little bit more information from the action.
Is there a way to return the entire data row on the onchange event? I don’t necessarily need the delta of the change but the row itself so I can get the unique ID of the changed row so I can update it in our database