PDA

View Full Version : directFn.directCfg is undefined?



stephenliberty
12 Feb 2010, 5:31 AM
Hey All,

I'm trying to use a direct store to load user records, modify/delete/add to them, then save it back to the server. This is the code I have right now:



userStore = new Ext.data.DirectStore({
fields:[
{name:'iduser'},
{name:'display_name'},
{name:'position_string'},
{name:'position'},
{name:'department'},
{name:'department_string'},
{name:'role'},
{name:'picturepath'}
],
id:'ProjectEditorUserStore',
autoSave:false,
root:'users',
writer:new Ext.data.JsonWriter({listful:true}),
baseParams:{
project:self.projectId
},
proxy:new Ext.data.DirectProxy({
api:{
read:"/?action=ProjectManager&op=getProjectUsers",
create:"/?action=ProjectManager&op=setProjectUsers",
update:"/?action=ProjectManager&op=setProjectUsers",
destroy:"/?action=ProjectManager&op=setProjectUsers"
}
})
})



When I load the page I get "directFn.directCfg is undefined" in firebug. I tried tracking down what it meant but got nowhere. Am I missing some configuration piece?

Thanks,
Stephen