Hello

I have a tree structure of categories that i am displaying in a form. Each
category has 0-N products associated with it.

What i am looking to create is a form that has all the categories (and
subcategories) listed with a checkbox by each category (as a "select-all"
feature), and all the associated products listed underneath the category
with a checkbox by each product.

The categories and products are from two separate database tables. Using the
db (pk) id of the category and the product as the checkbox value will not
work as they may have conflicting primary keys ie category X may have the
same pk id as product Y.

I am wondering the best way to implement this. At first i thought simple
grouping of the products would display the products under each category, but
then i ran into the above pk/id issue. Then i started reading about
subforms, but i'm not sure if this is the correct scenario for them, as this
is not a multi-page form.


-- 
View this message in context: 
http://zend-framework-community.634137.n4.nabble.com/Best-way-of-displaying-checkable-tree-structure-in-form-tp2165286p2165286.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to