Opened 11 years ago

Closed 7 years ago

#7807 closed enhancement (wontfix)

dojox.data.XmlStore doesn't support passing a document (among other things)

Reported by: alex Owned by: dylan
Priority: high Milestone: future
Component: Data Version: 1.2beta
Keywords: Cc: wl_joep@…, Jared Jurkiewicz
Blocked By: Blocking:

Description

specifying many values to the document fetching code in the XmlStore? is far too difficult. Further compounding the difficulty in using the store, it's not possible to simply pass it a document to be serached, causing many users to resort to subclassing for what should be trivial use-cases (particularly WRT the grid).

There are also some style and structure issues with the code for this store which need to be worked out.

In helping a user today, I wrote this one-off store for a behavior that should be built-in:

dojo.declare("acme.XmlDomStore", [ dojox.data.XmlStore ], {
	constructor: function(args){
		if(args && args.dom){ this.dom = args.dom }
	},
	dom: null,
	_fetchItems: function(request, fetchHandler, errorHandler){
		var items = this._getItems(this.dom);
		if(items && items.length){
			fetchHandler(items, request);
		}else{
			fetchHandler([], request);
		}
	}
});

Change History (4)

comment:1 Changed 10 years ago by Adam Peller

Cc: Jared Jurkiewicz added; jared removed

comment:2 Changed 10 years ago by bill

Milestone: 1.4future

comment:3 Changed 8 years ago by Chris Mitchell

Owner: changed from alex to dylan

please review/triage

comment:4 Changed 7 years ago by dylan

Resolution: wontfix
Status: newclosed

deprecated store, I believe things like this could be considered for future inclusion in https://github.com/kfranqueiro/dojo-smore

Note: See TracTickets for help on using tickets.