I’m using a DOJO JsonRestStore. I modify fields in the object.
What would be the proper procedure for persisting the modified object back to the datastore and REST service?
Update: Removed info about grid as it was not part of the problem.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Apparently I had assumed that the returned item would be synchronized with the datastore. It doesn’t appear so and must be updated manually using:
I was also hoping for a command equivalent to JPA merge. If you overwrite the prior object with:
and the item has the same unique id, it will overwrite the old item similar to merge.
Does anyone know if there some sort of a factory that will create getters and setters for an item that will call store.setValue() for each field?
I imagine it would be something like the following:
I am consider writing my own as its a neat piece of architecture.