You should not assign values to the parameters data. This way they cannot be updated properly.
What do you want to do in general?
And what does “it doesn’t work” mean? Does an error occur or is there unexpected behavior?