Re: Newbie Question:WOCheckBox
Re: Newbie Question:WOCheckBox
- Subject: Re: Newbie Question:WOCheckBox
- From: MacFirst <email@hidden>
- Date: Wed, 05 Nov 2003 13:19:21 -0800
> On Wednesday, November 5, 2003, at 10:42 PM, Kranthi Sagar Borra wrote:
>> I hava a WOCheckbox which I am populating with WORepetition.So my page
>> now has as many checkboxes as there are objects in the list that we
>> are using to iterate.So my problem now is to delete those rows for
>> which the checkbox is clicked.So how do I track which checkbox is
>> selected.Thanks in advance.
Rather than having my WORepetition iterate an NSArray of MyObjects with item
aMyObject, I have my list parameter return an NSArray of MyObjectRecords.
public class MyObjectRecord
{
public MYObjectType myObject;
public boolean checked;
}
And WORepetition item aMyObjectRecord. From here, I can set the
checkbox-checked attribute to aMyObjectRecord.checked and still access all
the myObject fields.
Remember, your list attribute can return an NSArray of anything you like.
MyObjectRecord could contain all sorts of extra data associated with
myObject, including popup selections, multiple checkboxes, etc.
_______________________________________________
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.