>Hi everybody,
>
> I've added a new property (not mapped) to my class called Updated. In JavaScript code I'm setting this property to true when I update the info. So, I'd like to pass the list back but instead of passing the whole array back in API call I'd rather only pass the subset of that array which has updated = true.
>
>So, the question is - how to get a new array from the original array in JavaScript to pass back to API?
>
>Thanks in advance.
first 3 options which bubble up:
creating a "changed" list on each change,
making a copy of the original data at start and comparing,
enhancing each data item to an object with .value and .changed
option 2 probably easiest to implement, but most likely to introduce lags, option 1 would be my preference if there are only few strategic places which need to be modified/controlled in the event flow.
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement