Newbie Question: Nested Lists for input
Newbie Question: Nested Lists for input
- Subject: Newbie Question: Nested Lists for input
- From: Gerald Hanks <email@hidden>
- Date: Thu, 20 Nov 2003 14:00:46 -0700
Here is a quick question I hope someone can answer. I have searched all over the internet and mailing lists and have not been able to find this answer. How would someone go about creating an input form that has a nested list of values. Example:
I have a table in the database that has some item categories which can have an arbitrary number of subcategories.
ItemCategory
item_category_id
item_category_parent_id
item_category_title
item_category_description
I have a list of items that are associated to those categories.
Item
item_id
item_name
item_category_id
I have a product table that looks like this
Product
product_id
product_name
product_description
I also have a product item table that joins the products and items in a many to many relationship.
ProductItem
product_id
item_id
I would like to be able to have an input screen that allows me to update a products items like so:
Product Update Form
item_category
item_category
[x] item_0
item_category
[x] item_1
[ ] item_2
[x] item_3
item_category
[ ] item_4
[x] item_5
item_category
item_category
[x] item_6
How would you go about putting something like this together? On a side note I would also like to be able to have a view screen that is the same but with no checkboxes.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.