Hi Shane
I feel like we have a communication problem. I'm not having a problem with the execution of the code. I'm having a problem with how the data is being saved.
You keep referencing context and how the code functions when it's irrelevant. We are simply talking about a small piece of the code within the rest of my code, ie the data that is being retrieved and saved once the rest of the action takes place.
My code I showed you is not correct, it results in the values being saved 4 times.
Instead of getting this saved in the field as 4 separate values.
205
256
289
88
I am getting this 4 times.
205, 256, 289, 88
205, 256, 289, 88
205, 256, 289, 88
205, 256, 289, 88
It's a problem with how I am retrieving the array and then resaving it. The context makes no difference. We are talking about two processes only.
1. How the data is retrieved
2. How the modified data is saved.
I didn't include the rest of the code because that is not the problem. It would make no difference what happens before or after because the problem resides in the retrieval and saving of the data. In terms of the variable I am simply adding one number to the existing numbers
If this is still not clear can you please pass this support thread onto another engineer because we are not communicating very well.
No offense I just want this answered and I feel there is nothing more I can add to explain. I feel you were on the right track before when you were talking about the explode. That's all I am after, the actual code required. If I can't get this answered then I'm better off just trying to figure it out by myself with the trial and error method.
Thanks