Opened 7 years ago

Closed 6 years ago

#15414 closed defect (wontfix)

CouchDBRestStore w/ DataGrid scrolling does not get items.

Reported by: polaris_s0i Owned by: Kris Zyp
Priority: undecided Milestone: tbd
Component: DojoX Data Version: 1.7.2
Keywords: Cc:
Blocked By: Blocking:

Description

Note: I have applied patch in ticket 14815.

In the override fetch function in CouchDBRestStore.js the args.start parameter is deleted before calling the parent fetch from ServiceStore?.js

This causes a DataGrid? not to fetch successive items after the scroll. It will fetch the list of the next page of items, but not get the individual items afterword.

Workaround is to comment out the delete args.start line in the fetch function from CouchDBRestStore.js

fetch: function(args){

summary: This only differs from JsonRestStore? in that it, will put the query string the query part of the URL and it handles start and count

args.query = args.query
'_all_docs?';

if(args.start){

args.query = (args.query ? (args.query + '&') : ) + 'skip=' + args.start; delete args.start;

} if(args.count){

args.query = (args.query ? (args.query + '&') : ) + 'limit=' + args.count; delete args.count;

} return this.inherited(arguments);

}

I am unaware of yet as to any other implications of commenting out this line. Should this be fixed in DataGrid? instead?

Change History (1)

comment:1 Changed 6 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 https://github.com/kfranqueiro/dojo-smore.

Note: See TracTickets for help on using tickets.