I am using DGRID to display data. I am aware i can query records in the store using store.query and insert records into the store using store.put and so on however i would like to do an update of the store. How can i update a record in the store?
I would prefer updating the memory store and then push that back into the database instead of updating the database first and then refreshing the memory store.
Data
var data = [
{ id:"1", idType: "Passport", idNumber: "12121545WWW" },
{ id:"2",idType: "Drivers Permit", idNumber: "11212154515 FF"},
{ id:"3",idType: "Electoral Identification", idNumber: "425123123121"}
];
Functions
Add data
Store.put({id: enteredId, idNumber:enteredIdNumber,idType:enteredIdType})
Query data
Store.query({idType: enteredIdType})
Update data - i am confused how this is done
Store.update({idNumber:enteredIdNumber,idType:enteredIdType})