Re: Question about WORepetitions

2007-03-07 Thread Jerry W. Walker
Hi, Tom, Welcome! You seem to have gotten good answers to your technical question, so let me address your aside. First the bad news: Apple has not upgraded WebObjects significantly for several years, not since they converted the entire set of frameworks to Java around the turn of the mi

Re: Question about WORepetitions

2007-03-07 Thread Fred Shurtleff
SEE BELOW Tom Davis wrote: Hi all, I'm new to WebObjects and I need a little help. I need to iterate through a group of EO objects. I'll call them 'baskets' for example. Each basket object has a to-many relationship to foodObjects. I used a repetition to iterate through all the baskets and

Re: Question about WORepetitions

2007-03-07 Thread David Holt
Tom, Off the top of my head, you sound like you're assigning your multiple food items to the same variable. Each basket will have to have a separate key (basket1SelectedFoodItem, basket2SelectedFoodItem, etc.) Then you would just instantiate an NSMutableArray and add the objects that have

Question about WORepetitions

2007-03-07 Thread Tom Davis
Hi all, I'm new to WebObjects and I need a little help. I need to iterate through a group of EO objects. I'll call them 'baskets' for example. Each basket object has a to-many relationship to foodObjects. I used a repetition to iterate through all the baskets and present a popup asking

Re: Newbie question about WORepetitions and WORadioButtons

2006-07-19 Thread Jean-François Veillette
sorry, I should read myself before sending it to the list ... try to capture selected/unselected as part of 'takeValueFromRequest' of your component. One way to do is to use a selection method like this : Object myItem; // this is the item of the repetition NSMutableDictionary itemSelection;

Re: Newbie question about WORepetitions and WORadioButtons

2006-07-19 Thread Randy Wigginton
Chip, this is pretty easy. Implement a "set" method that adds the item into a vector (or NSArray) for buttons. On Jul 19, 2006, at 1:17 PM, Chip Myers wrote: Actually, my objective is to NOT generate a button beside each object, but to have one row of buttons located below my list of

Re: Newbie question about WORepetitions and WORadioButtons

2006-07-19 Thread Jean-François Veillette
Chip, try to capture selected/unselected as part of 'takeValueFromRequest' of your component. One way to do is to use a selection method like this : Object myItem; // this is your item of your repetition NSMutableDictionary itemSelected; // probably instantiated in your constructor, cleard as

Re: Newbie question about WORepetitions and WORadioButtons

2006-07-19 Thread Jerry W. Walker
Hi, Chip, First, you want to use the name/selection/value bindings of the WORadioButton. The name binding must be identical for all the WORadioButtons to function as a group. Use the object bound to the WORepetition's item binding to create a unique identifiable value to set the value bin

Newbie question about WORepetitions and WORadioButtons

2006-07-19 Thread Chip Myers
Actually, my objective is to NOT generate a button beside each object, but to have one row of buttons located below my list of objects.  Thus, I'm still having the same problem capturing the selected objectItem to pass to a method that my "Edit" button calls.  Because the entire objectList is t

Re: Newbie question about WORepetitions and WORadioButtons

2006-07-19 Thread Jerry W. Walker
Hi, Chip, I will often embed the Object's display string in a WOHyperlink for editing the object and add a WOHyperlink for "Delete" beside it in the list. When the user clicks on either link, you have immediate access to the bound item from the list. This also allows the user to perform e

Re: Newbie question about WORepetitions and WORadioButtons

2006-07-19 Thread Sacha Michel Mallais
On Jul 19, 2006, at 8:38 AM, Chip Myers wrote: I'm currently displaying a list of objects in a WORepetition, with each object having a WORadioButton displayed beside it. Once the list finishes generating, I display 2 hyperlinks, edit and delete, whose operations can then be performed on an

Newbie question about WORepetitions and WORadioButtons

2006-07-19 Thread Chip Myers
I'm currently displaying a list of objects in a WORepetition, with each object having a WORadioButton displayed beside it.  Once the list finishes generating, I display 2 hyperlinks, edit and delete, whose operations can then be performed on any one object in the list.  Within the WORepetition,