PDA

View Full Version : Generating nested panels based on model associations



bjudson
7 Sep 2011, 6:13 AM
I'm trying to wrap my head around the process of building nested panels that reflect model associations. In this case I have a model 'Artifact' that belongsTo a model 'Collection'. I would like to generate a series of hbox panels, one for each 'Collection', within a vbox panel. Each of the hboxes would be populated using an xtemplate. I feel like this type of thing can't be very uncommon, but I haven't seen any examples or discussions of how one would approach this. It doesn't seem possible to create panels with DataView, but maybe I'm missing something in the API.