Re: Updating Nested To-Many Relationship *NOT SOLVED*

2007-04-12 Thread Jerry W. Walker
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 proce

Re: Updating Nested To-Many Relationship *NOT SOLVED*

2007-04-11 Thread Chuck Hill
On Apr 11, 2007, at 12:50 PM, David Avendasora wrote: 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 aroun

Re: Updating Nested To-Many Relationship *NOT SOLVED*

2007-04-11 Thread David Avendasora
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

Re: Updating Nested To-Many Relationship *NOT SOLVED*

2007-04-11 Thread Chuck Hill
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 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 you

Re: Updating Nested To-Many Relationship *NOT SOLVED*

2007-04-11 Thread Ken Anderson
This is one of Jerry's reponses: http://lists.apple.com/archives/webobjects-dev/2005/Jul/msg00509.html 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 t

Re: Updating Nested To-Many Relationship *NOT SOLVED*

2007-04-11 Thread David Avendasora
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, Ch

Re: Updating Nested To-Many Relationship *NOT SOLVED*

2007-04-11 Thread David Avendasora
On Apr 11, 2007, at 6:36 AM, Ken Anderson wrote: David, Are you sure you're looking at the same RSComponent when you find all the relationships null? To me, that is a clear case of RSComponent being the target of a mandatory to-one relationship. Under certain circumstances, EOF will cr

Re: Updating Nested To-Many Relationship *NOT SOLVED*

2007-04-11 Thread Ken Anderson
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

Re: Updating Nested To-Many Relationship *NOT SOLVED*

2007-04-11 Thread Chuck Hill
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

Re: Updating Nested To-Many Relationship *NOT SOLVED*

2007-04-11 Thread David Avendasora
(truncated old messages to get past filter) On Apr 11, 2007, at 6:36 AM, Ken Anderson wrote: David, Are you sure you're looking at the same RSComponent when you find all the relationships null? To me, that is a clear case of RSComponent being the target of a mandatory to-one relationship.

Re: Updating Nested To-Many Relationship *NOT SOLVED*

2007-04-11 Thread Ken Anderson
David, Are you sure you're looking at the same RSComponent when you find all the relationships null? To me, that is a clear case of RSComponent being the target of a mandatory to-one relationship. Under certain circumstances, EOF will create an empty EO that's the target of that mandato

Re: Updating Nested To-Many Relationship *NOT SOLVED*

2007-04-10 Thread David Avendasora
Okay, I spoke too soon. It works to change SOME relationships, but not others. Here's what it does: For example, if I change the relationship of a RSComponent from RoutingStep 4 to RoutingStep 3, it works as expected, simply changing both sides of the RoutingStep<-->>RSComponent relations

Re: Updating Nested To-Many Relationship *SOLVED*

2007-04-10 Thread David Avendasora
Thanks Ken! Once I read your message it seems SO obvious. I had to modify my EOGenerator template to add the new getter method, but once I did that and changed the binding, it works perfectly! Dave On Apr 10, 2007, at 1:08 PM, Ken Anderson wrote: David, Since you're changing a relation

Re: Updating Nested To-Many Relationship

2007-04-10 Thread Ken Anderson
David, Since you're changing a relationship and you want it to be reflected in the model immediately, you'll have to handle the action yourself and update the model using addObjectToBothSidesOfRelationshipWityKey or removeObjectFromBothSidesOfRelationshipWithKey. If you're generating you

Re: Updating Nested To-Many Relationship

2007-04-10 Thread David Avendasora
I'm going to try to clarify this a bit: Here's the structure of my Form, the important part is in bold: aRouting

Re: Updating Nested To-Many Relationship

2007-04-10 Thread David Avendasora
Okay, I over-simplified the problem some. On the actual component, I'm not saving the changes to the database until the user clicks the "save" button. They _could_ save the changes after every change, but I want them to be able to revert, undo, and redo. I don't really understand how I can

Re: Updating Nested To-Many Relationship

2007-04-09 Thread Clark Mueller
You can also have a look at some more in depth discussion of this topic on the WikiBook: http://en.wikibooks.org/wiki/Programming:WebObjects/EOF/Using_EOF/ Caching_and_Freshness Clark On 9 Apr 07, at 9:06 AM, Zak Burke wrote: David Avendasora wrote on 4/5/07 2:32 PM: I want to allow the u

Re: Updating Nested To-Many Relationship

2007-04-09 Thread Zak Burke
David Avendasora wrote on 4/5/07 2:32 PM: I want to allow the user to move a RSComponent from one RoutingStep to another. I present the user with a WOPopUpButton on each rsComponent of all the RoutingSteps and they can simply pick which one they want it in. It does update everything properly, b

Updating Nested To-Many Relationship

2007-04-05 Thread David Avendasora
Okay, now I'm having another issue with this wonderful form: aRouting aRouting.routingDescription aRouting.part aRoutingStep.stepNumber aRoutingStep.stepName aRoutingStep.instructions