Re: Updating Nested To-Many Relationship *NOT SOLVED*
Re: Updating Nested To-Many Relationship *NOT SOLVED*
- Subject: Re: Updating Nested To-Many Relationship *NOT SOLVED*
- From: David Avendasora <email@hidden>
- Date: Wed, 11 Apr 2007 14:50:31 -0500
On Apr 11, 2007, at 2:03 PM, Chuck Hill wrote:
On Apr 11, 2007, at 12:01 PM, Ken Anderson wrote:
This is one of Jerry's reponses:
http://lists.apple.com/archives/webobjects-dev/2005/Jul/msg00509.html
I am trying to wrap my mind around what Jerry has written here. It's
going to take me a while, I think.
You can go to lists.apple.com and pretty much search your heart out.
What Chuck is suggesting happening is that you have something on
your page (like a WOConditional) that's state is bound to
something that is changing.
Or you are altering the contents of an array that is bound to a
WORepetion. That would be my guess based on your description of
this page. Adding, removing, or moving the elements of an array
while WO is in a repetition will have very, very odd effects from
scrambled data to exceptions.
Chuck
I am altering two arrays that are bound to WORepetitions by moving an
object from one to the other, but how is this different than if I had
simply deleted/added an object from/to a relationship? Those
functions alter the contents of arrays bound to WORepetitions as well
and yet seem to work just fine.
When the form post comes back, WO tries to match up the structure
of the page to get all the values out, and it effectively 'gets
lost'. What I usually do is have hyperlink or submit actions
modify temporary variables that are not referenced during page
creation. Then, I override appendToResponse() in the component
and update the real data from the temporary variables. This way,
you guarantee that your page structure is the same.
Ken
On Apr 11, 2007, at 2:47 PM, David Avendasora wrote:
Okay, I'm having a hard time finding the info by googling for it.
Any chance of a link?
Thanks,
Dave
On Apr 11, 2007, at 11:16 AM, Ken Anderson wrote:
You can look for my prior postings too... I've even written up a
decent solution a couple of times... :)
On Apr 11, 2007, at 12:07 PM, Chuck Hill wrote:
Paging Mr. Walker, Mr. Jerry Walker. Mr. Jerry Walker, please
come to the WO List. :-)
This is one of Jerry's most favored rants. I am pretty sure
that what is happening is that you are modifying the structure
of the page while it is processing the takeValues phase.
Search for some of Jerry's past postings on this for the cause
and solution.
Chuck
--
Practical WebObjects - for developers who want to increase their
overall knowledge of WebObjects or who are trying to solve specific
problems.
http://www.global-village.net/products/practical_webobjects
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden