[dojo-contributors] tree/dojo.data problems

Bill Keese bill at dojotoolkit.org
Tue Aug 21 17:17:13 EDT 2007


Brian Douglas Skinner wrote:

> In some cases the datastore implementation could provide the "child" 
> attribute you need, even if the underlying data source is a relational 
> database.
> 
> Say you have a Geography database with relational tables like these:
> 
>    NAME  ID  COUNTRY
>    Utah  UT  USA
>    Ohio  OH  USA
> 
>    ID   NAME
>    UKR  Ukraine
>    USA  United States
> 
> In the Geography datastore, the items for "Ukraine" and "United States" 
> might have attributes "Name", "Id", and "States", even though there's no 
> column for STATE in the COUNTRIES table.

Yup, I think this is what Jared was trying to say.  It's a good idea, 
although I think I want to be able to configure Tree to work on simple 
datastores without this feature (for example, the ItemFileReadStore).



More information about the dojo-contributors mailing list