Ticket #4761 (closed defect: fixed)
[CLA] [patch] Two QueryReadStore errors (#4597)
| Reported by: | guest | Owned by: | jaredj |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | DojoX Data | Version: | 0.9 |
| Severity: | normal | Keywords: | QueryReadStore |
| Cc: | BlueFire, wolfram |
Description
The first error is actually a typo: the example HTML file contains the following line, in the PRE block:
request.query = {q:request.query.name, start:request.start, count:request.count};
while it should actually read
request.serverQuery = ...
The second error regards server-side pagination, which I believe is not working. I think the problem is that also simpleFetch is trying to do pagination, specifically where it says
subset = items.slice(startIndex, endIndex);
Removing that row from simpleFetch made pagination work fine - but clearly, it broke all the other components using it.