Re: Form elements within a WORepetition
Re: Form elements within a WORepetition
- Subject: Re: Form elements within a WORepetition
- From: Alex Eiser <email@hidden>
- Date: Mon, 22 Dec 2003 09:17:03 -0500
I found this to be a problem as well.
I found a solution, while a little weird works great. The problem is,
that if you use the standard settings on the WO repetition. IE: set the
array, and an item element. then you can only edit one element from the
array. Essentially, it doesn't work as you have already seen.
I found that you can get this to work by using an index variable.
First, set the count item of the WOrepetition to the size of the array.
You can use the count method of the existing array if you want. You
also need to specify an index variable. Finally set the item value to a
method.
This method takes your index and your array and returns the item at
that index. You need a set method as well. This will give you the
functionality you want. All elements are show, and they can all be
updated easily.
I use this with two nested WO repetitions to create a dynamic table
(With a record specific number of rows & columns).
I am not sure if this is the best way to do it, but it works for me and
like you found there is no other documentation written any where on how
to do it.
Alex
On Dec 22, 2003, at 4:15 AM, Jonathan D. George wrote:
Hi all,
Any suggestions on how to incorporate editable form elements as part
of a WORepetition, and then submitted at some point? I can't find
anything in any of the examples, and none of my books cover this...
-Jonathan
_______________________________________________
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.
_______________________________________________
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.