Read, Update, and Delete work great on the server side. However, I am having a problem with the Create call. The EventId parameter is always empty when the router.php calls the createRecord function in my implementation class.
All other parameters are correct and the other functions work great. I am at a loss to figure this out.
// Store holding all the tasks
var eventStore = Ext.create("Ext.data.JsonStore", {
model : 'MyApp.model.Event',
autoSync:true,
proxy: {
type: 'direct',
api: {
create: PAssignments.createRecord,
read: PAssignments.getResults,
update: PAssignments.updateRecords,
destroy: PAssignments.destroyRecord
}
}
});
Here is the code that adds the new record to the store. fieldEventId is logged to the console as being 11. (Hardcoding the value does not help either).