Opened 11 years ago

Closed 11 years ago

#7980 closed defect (fixed)

dojox.data.AndOrReadStore : syntax error when use with FilteringSelect

Reported by: gui92 Owned by: Jared Jurkiewicz
Priority: high Milestone: 1.3
Component: DojoX Data Version: 1.2.0
Keywords: AndOrReadStore FilteringSelect dojox data Cc:
Blocked By: Blocking:

Description

When you pas a complexQuery object in FilteringSelect? query (example : query="{complexQuery: 'type:1 AND NOT id:3'}"), a syntax error occured.

In the AndOrReadStore?.js _fetchItems function, the keywordArgs is an object composed with the complexQuery and the FilteringSelect? searchAttr value (exemple {"complexQuery":"type:1 AND NOT id:3","label","test"} ). This case is not supported by AndOrReadStore?.

Attachments (1)

dojox.data.AndOrStores_20081106.patch (52.2 KB) - added by Jared Jurkiewicz 11 years ago.
Patch for AndOrStores? to fix reported issue.

Download all attachments as: .zip

Change History (4)

comment:1 Changed 11 years ago by Jared Jurkiewicz

Milestone: tbd1.3
Status: newassigned

Th only way I can see it working with a mix of a complex query and attribute query is that the complexQuery is ANDed to the attributes to create a new complex query like:

{

"complexQuery":"type:1 AND NOT id:3", "label":"test"

}

becomes:

"complexQuery":"( type:1 AND NOT id:3 ) AND label:'test'"

when processed.

This is how I'll address this issue/complaint. It does then work with FilteringSelect?

comment:2 Changed 11 years ago by Jared Jurkiewicz

Tested fix on:

IE 7 Firefox 2

Safari 3.1

Seamonkey 1.1.2

Google Chrome

Changed 11 years ago by Jared Jurkiewicz

Patch for AndOrStores? to fix reported issue.

comment:3 Changed 11 years ago by Jared Jurkiewicz

Resolution: fixed
Status: assignedclosed

Fixed. Can't list changeset because of trac problems.

Note: See TracTickets for help on using tickets.