I hope this is something easy that I'm missing, but I've had some other developers here take a look. So I've got some code where I'm simply loading a datastore with some security information related to the application I'm working with. I wanted simply to create a custom function to query this datastore to return a record when passing an node to that function.

I'm not getting any errors. I'm just getting an empty mixed collection object back. When I know for a fact that this record is in there that has an id or child on it of 41. In the below code I've logged the output to confirm that the datastore is there and loaded with the info I'm looking for.

Thanks for any thoughts or direction.

Code:

Code:
Ext.namespace('PEISec');


PEISec.getSecInfo = function(){

	PEISec.CurSecAccess.load();
	console.log(PEISec.CurSecAccess);
	console.log(PEISec.Access(41));
		
}


// function to pull in information about a specific node in the database and 
// find out whether what access the user has to that node
PEISec.Access = function(node){
	console.log(PEISec.CurSecAccess.data);
	console.log(PEISec.CurSecAccess.query('child',node));
	return PEISec.CurSecAccess.query('child',node);
}


//security info record
	PEISec.CurSecAccessRec = new Ext.data.Record.create([
		{name: 'app_cd',  mapping: 'app_cd'},
		{name: 'child',  mapping: 'child'},
		{name: 'childnode',  mapping: 'childnode'},
		{name: 'childtype',  mapping: 'childtype'},
		{name: 'child_seq',  mapping: 'child_seq'},
		{name: 'create_',  mapping: 'create_'},
		{name: 'delete_',  mapping: 'delete_'},
		{name: 'menulevel',  mapping: 'menulevel'},
		{name: 'node_code',  mapping: 'node_code'},
		{name: 'node_markup',  mapping: 'node_markup'},
		{name: 'parent',  mapping: 'parent'},
		{name: 'parentnode',  mapping: 'parentnode'},
		{name: 'read_',  mapping: 'read_'},
		{name: 'self_',  mapping: 'self_'},
		{name: 'update_',  mapping: 'update_'}
		
	]);


	//load Datastore with all security functionality of the current person logged in
	PEISec.CurSecAccess = new Ext.data.Store({
		proxy: new Ext.data.HttpProxy({
			url: 'secinfo.cfm',
			method: 'POST'
		}),
		 baseParams:{secMode: "cursecaccess"}, // this parameter is passed for any HTTP request
		 reader: new Ext.data.JsonReader({
			 root: 'sec',
			 totalProperty: 'totalcount',
			 id:'child'
		},
			PEISec.CurSecAccessRec
		),
		remoteSort: false
	
		});