If you liked that, wait until you see what's in there now. ;-)

I've enhanced the View scaffold so that any one-to-many or
many-to-many relationships appear as a listing, using the tablesorter
plugin.  So, in addition to the standard properties that you'd see on
a view screen, a sortable, pageable (is that a word) table of all of
the children, with links to view, edit and delete each one, is now
displayed for any one-to-many or many-to-many properties.

The code needs work. There's a bunch of hardcoded stuff in there and
there may be JavaScript issues, but it all seems to be working right
now, so it's a good example of what's possible. One good thing about
the code is that the listings on the View screen are using the exact
same code as the Listing screen, so there's not much duplication.

I want to add this functionality to the Edit scaffold as well. I hope
to get to that on Friday.

If anyone wants to check it out, it's all available in the branch.
I've added an entity called Language to demonstrate the many-to-many.
When you first load the sample app you should see a list of countries.
Click on Canada (of course) to see the new View screen, which includes
a list of Provinces plus a list of Languages.

Let me know what you think.

Cheers,
Bob


On Wed, Jan 27, 2010 at 9:25 PM, byron <[email protected]> wrote:
> Neat.  I haven't used the tablesorter much, but I like it.  Very
> interested in looking over the code and the possibilities.  Also the
> proposed configurability.  Even the stuff I've seen so far has a lot
> of promise for things I need to be able to do at my work.
>
> byron
>


-- 
Bob Silverberg
www.silverwareconsulting.com

Hands-on ColdFusion ORM Training @ cf.Objective() 2010
www.ColdFusionOrmTraining.com

-- 
Model-Glue Sites:
Home Page: http://www.model-glue.com
Documentation: http://docs.model-glue.com
Bug Tracker: http://bugs.model-glue.com
Blog: http://www.model-glue.com/blog

You received this message because you are subscribed to the Google
Groups "model-glue" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/model-glue?hl=en

Reply via email to