Opened 10 years ago

Closed 9 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:



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

Attachments (1)

CsvStore.diff (466 bytes) - added by bag 10 years ago.
Diff for CsvStore? changed needed to allow quering via function.

Download all attachments as: .zip

Change History (3)

Changed 10 years ago by bag

Attachment: CsvStore.diff added

Diff for CsvStore? changed needed to allow quering via function.

comment:1 Changed 9 years ago by dylan

Owner: changed from Kris Zyp to bag
Status: newpending

Do you have a CLA on file? I don't see one when searching our list.

comment:2 Changed 9 years ago by trac-o-bot

Resolution: invalid
Status: pendingclosed

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!

Note: See TracTickets for help on using tickets.