> What would be the best way to write the view for this data? I 
> need to display the main order information first and then 
> loop over the order parts with another loop for each of the 
> order line items for each part. I don't want to be calling 
> the getOrderLineItems query during each order part loop 
> because that breaks the separation of presentation from the 
> backend. 

I haven't read the whole thread, but if you have a hierarchical data set
(orders, lineitems), why not just return them in one query and use the GROUP
attribute of CFOUTPUT to display them?

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:309088
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to