[Dojo-interest] Question about JSON RestStore, Tree, and SubCategories

OakBehringer adamkosecki at gmail.com
Thu Feb 4 12:58:55 EST 2010


I am using the JsonRestStore to CRUD blog posts:

postsStore = new dojox.data.JsonRestStore({ target: '/cms/blog-posts/',
labelAttribute: 'title' });

This will retrieve all of the posts. 

Now, what if I want them categorized by year, then month in my tree? So,
instead of a tree that looks like this:

/posts
    /title 1
    /title 2
    /title 3
    /title n

it would look like this:

/posts
    /2010
         /Feb
             /title 1
             /title 2
         /Jan
             /title 3
             /title 4
             /title 5
    /2009
         /Dec
         /Nov

...etc

I'm guessing the answer lies somewhere in the forest-store model, but I'm
not sure.

Thanks!
Adam
-- 
View this message in context: http://n3.nabble.com/Question-about-JSON-RestStore-Tree-and-SubCategories-tp187507p187507.html
Sent from the Dojo Toolkit mailing list archive at Nabble.com.


More information about the Dojo-interest mailing list