Re: multiple wocheckbox in form
Re: multiple wocheckbox in form
- Subject: Re: multiple wocheckbox in form
- From: mmalcolm crawford <email@hidden>
- Date: Mon, 2 Aug 2004 12:03:04 -0700
On Jul 24, 2004, at 2:04 PM, Andrew Lindesay wrote:
If you're going through a WORepetition of product objects in your
component then you'll have an interation variable like "aProduct". I
tend to keep an NSMutableSet or something handy to remember which
products I want and then I do something like this...
For situations when you need to use an array rather than a set:
<http://www.stepwise.com/Articles/Technical/WOF_Checkboxes.html>
public void setIsSelectedForAProduct(boolean value) {
chosenProductSet.addObject(aProduct); }
public void setIsSelectedForAProduct(boolean value)
{
if (value) { chosenProductSet.addObject(aProduct); }
else { chosenProductSet.removeObject(aProduct); }
}
mmalc
_______________________________________________
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.