Opened 9 years ago
Closed 8 years ago
#14981 closed enhancement (invalid)
CsvStore: Allow function to be used as a query parameter (code included)
Reported by: | bag | Owned by: | bag |
---|---|---|---|
Priority: | undecided | Milestone: | tbd |
Component: | DojoX Data | Version: | 1.7.2 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
Hello,
The attached patch is a tiny edit to the CsvStore? which allows functions to be passed in as query parameters.
For example:
someCsvStore.setQuery({"col_x" : function(v){return (v<10);});
The code change itself is simply a 2 line edit, adding the following in to the CsvStores? _containsValue method, as a second clause to the contained if statement.
}else if(typeof value === "function"){ return value(possibleValue);
The change is almost identical to the one I previously submitted for the itemFileReadStore http://bugs.dojotoolkit.org/ticket/14067
Attachments (1)
Change History (3)
Changed 9 years ago by
Attachment: | CsvStore.diff added |
---|
comment:1 Changed 8 years ago by
Owner: | changed from Kris Zyp to bag |
---|---|
Status: | new → pending |
Do you have a CLA on file? I don't see one when searching our list.
comment:2 Changed 8 years ago by
Resolution: | → invalid |
---|---|
Status: | pending → closed |
Because we get so many tickets, we often need to return them to the initial reporter for more information. If that person does not reply within 14 days, the ticket will automatically be closed, and that has happened in this case. If you still are interested in pursuing this issue, feel free to add a comment with the requested information and we will be happy to reopen the ticket if it is still valid. Thanks!
Diff for CsvStore? changed needed to allow quering via function.