Changes between Initial Version and Version 1 of Ticket #12598


Ignore:
Timestamp:
Apr 3, 2011, 12:44:39 AM (8 years ago)
Author:
bill
Comment:

Passing ticket to Jared but I think you are misunderstanding. Items need to be simple hashes (often mistakenly referred to as "JSON"). Typically you would implement a parent "pointer" by listing the id of the parent, like:

{id: "SF", parent: "CA"}

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #12598

    • Property Owner set to Jared Jurkiewicz
    • Property Component changed from Dijit to Data
    • Property Summary changed from dijit.Tree with dojo.data.ItemFileReadStore too much recursion to ItemFileReadStore too much recursion error when item points to parent
  • Ticket #12598 – Description

    initial v1  
    55I am (possibly incorrectly) expecting that the model can work with a model object that is useful in the application context beyond simply containing an ID and a label.
    66
    7 Otherwise I could imagine that the API would be much simpler, just expecting a simplified copy of the application model, perhaps a tree of nodes with only IDs and labels instead of ItemFileReadStore and TreeStoreModel.
     7Otherwise I could imagine that the API would be much simpler, just expecting a simplified copy of the application model, perhaps a tree of nodes with only IDs and labels instead of !ItemFileReadStore and !TreeStoreModel.
    88
    99In my case, every node model object needs a reference to its parent node which IMHO is a very common thing to do.