jpflana
Posts: 13
|
| Posted: 08/15/2006, 3:23 PM |
|
Has anyone successfully used multiple arrays in the Checkbox List / many-to-many example?
What I am looking to do is create multiple checkbox lists by categories. You can see an example of what I want to do in this post. (http://forums.yessoftware.com/posts.php?post_id=78100)
I think this could be done by creating multiple arrays where the SELECT pulls project_id values for only 1 category. I'm assuming you would have to hard code the individual catetory ids into the multiple arrays for each control. The follow-up questition is whether or not you could then update / insert / delete the values for all of the array populated checkbox list controls.
Thanks,
Jeremy F
|
 |
 |
Waspman
Posts: 948
|
| Posted: 08/16/2006, 1:51 AM |
|
Yeah, took me about a day to get my head round it, but basically I just ripped the code from the example.
I also categorised the lists by having seperate forms, problem is they had to be fixed. But it worked fine.
I used this as user classification method and searching based on calssification was a real pain (there are 50K users and 400 classifications ) So as well as assigning the check box value so the client could see what was checked in the user profile, I created a string from the selected check boxes and inserted that into the main file and did the classification search against that.
HTH
Tony
_________________
http://www.waspmedia.co.uk |
 |
 |
|