matscher
2 Apr 2012, 2:56 AM
Hi,
I use the rowEditing-plugin to edit rows in a grid. I populate a row with updateRecord and then calling save, sending the data to the server through the proper api call. All went well till I got an error back saying that "record is undefined".
record is undefined
me.set(record.data);
The save-call:
editOwner: function(editor, e) {
console.log('edit update requested');
editor.record.save();
},
Despite this error, the row is successfully updated at the database.
The json response:
{"action":"QueryDatabase","method":"updateRecords","data":[{"id":193,"project_code":"Maddi","project_label":"Meins","project_state":"act","project_from":"2012-01-01T01:00:00","project_to":"2013-01-01T01:00:00"}],"type":"rpc","tid":2}
Has anyone an idea how I can fix this error?
Regards!
I use the rowEditing-plugin to edit rows in a grid. I populate a row with updateRecord and then calling save, sending the data to the server through the proper api call. All went well till I got an error back saying that "record is undefined".
record is undefined
me.set(record.data);
The save-call:
editOwner: function(editor, e) {
console.log('edit update requested');
editor.record.save();
},
Despite this error, the row is successfully updated at the database.
The json response:
{"action":"QueryDatabase","method":"updateRecords","data":[{"id":193,"project_code":"Maddi","project_label":"Meins","project_state":"act","project_from":"2012-01-01T01:00:00","project_to":"2013-01-01T01:00:00"}],"type":"rpc","tid":2}
Has anyone an idea how I can fix this error?
Regards!