1 Reply Latest reply on Jun 26, 2008 11:04 AM by matthew horn

    load model from ArrayCollection (json)

    Fredsells Level 1
      I'm using turbogears, which conventiently returns json that is easily converted to an ArrayCollection. This works fine for loading general items like datagrids.

      But I would like to load a form from the record in the database in order to edit it. The returned data is something like
      {id:1, title:"very fast boat", body:"john had a fast jon boat..."} which gets loaded into an arraycollection.

      I see how to bind mx:model to the textinput fields (I think). But I would like to map the ArrayCollection either to the model, or directly to the fields in the form, without having to write a statement for each element in the form.

      Can this be done???????