Opened 13 years ago
Closed 8 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: | [email protected]…, 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 12 years ago by
Cc: | Jared Jurkiewicz added; jared removed |
---|
comment:2 Changed 12 years ago by
Milestone: | 1.4 → future |
---|
comment:3 Changed 10 years ago by
Owner: | changed from alex to dylan |
---|
comment:4 Changed 8 years ago by
Resolution: | → wontfix |
---|---|
Status: | new → closed |
deprecated store, I believe things like this could be considered for future inclusion in https://github.com/kfranqueiro/dojo-smore
please review/triage