[Dojo-interest] this.store is undefined

Jean-Rubin Leonard jrleonard at gmail.com
Thu Jul 23 20:52:58 EDT 2009


Hi,
I am trying to create a checkItemAcceptance function. I have the
following function but whenever I run it, I get the "this.store is
undefined" error. I am stuck. Anyone can help?
This is my function.
Any help is welcome.
JR
function itemAccept(target, source) {
	var targetNode = dijit.getEnclosingWidget(target).item;

	// There is no item connected with the root
	if (! targetNode) {
	return false;
	}

	var targetType = this.store.getValue(targetNode.item, "node_type");

	switch(targetType)
	{
	case "Cost center group":
		if(dojo.hasClass( source.item, "Portfolio") ){
			return true;
		}else
		return false;
	
	default:
	return false;
	}

}


More information about the Dojo-interest mailing list