Login Register

itemFileReadStore.fetch query does not pass data into "items" parameter of oncomplete function

Hello,

I have posted this problem in the dijit forums, but I also believe it is a problem with the dojo.data area of the framework, and some help would be great:

I am currently trying to populate the options in a second filteringselect based upon the option chosen on the first filteringselect. I have tried to do this using various methods I have found, but the problem I constantly get into is when my code enters the onComplete function after fetching the data, the "items" array is empty, does anyone know how to fix this?

Whenever I debug the code in firebug, it shows that the items parameter has this value : [ ]
request has a value of this: Object query=Object store=Object

and my second data store has a value of this in firebug: Object _arrayOfAllItems=[9] _arrayOfTopLevelItems=[9]

the javascript enters all of the functions and goes through the entire process, but no data is grabbed and I believe the problem is the presumably empty "items" parameter.

here is my fetch method call:

function getData(selectedValue){

secondStore.fetch({
              query: { major: '"' + selectedValue + '"' }, 
	      onComplete: getOptions,
	      onError: errorHandler
		});	
	};

}