Opened 13 years ago

Closed 9 years ago

#10432 closed defect (wontfix)

JsonQuery.js sort part generation

Reported by: petteri Owned by: Kris Zyp
Priority: high Milestone: tbd
Component: DojoX Data Version: 1.4.0b
Keywords: Cc:
Blocked By: Blocking:


jsonQuery.js fails to correctly form sort part of query as ternary operation with simplifiedQuery is not enclosed in round brackets.

Expected query:


Resulting query:


Attachments (1)

JsonQuery.js.diff (689 bytes) - added by petteri 13 years ago.

Download all attachments as: .zip

Change History (4)

Changed 13 years ago by petteri

Attachment: JsonQuery.js.diff added

comment:1 Changed 13 years ago by Jared Jurkiewicz

Owner: changed from Jared Jurkiewicz to Kris Zyp

comment:2 Changed 13 years ago by DanielWiklund

I also came across this problem. I use a DataGrid? with a JsonQueryRestStore?.

After some troubleshooting, I think I found the cause of the problem.

In the Dojox\Data\Util\JsonQuery?.js on line 55 it says:


The problem here seems to be that there are brackets missing around the third part of the statement:


If you add brackets resulting in the following line, it seems to work:


comment:3 Changed 9 years ago by Colin Snover

Resolution: wontfix
Status: newclosed

dojox/data is abandoned. Some dojox/data stores have been upgraded to use the Dojo Store API and can be found at

Note: See TracTickets for help on using tickets.