Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Correction to: using relations in repetitions



Hi,

On Nov 10, 2005, at 6:51 AM, Wolfram Stebel wrote:

I have a relation many-to-many (maintained
manually, not a join table)

What do you mean by "maintained manually"?

from A to B, called "Bs".
I have an A in a component already shown.
When i assign the relation "Bs" to the list property of a repetition, it
does not automatically feetch the values. Instead i have to do an A.Bs
().count () or something else to get the data loaded.
The repetition otherwise does not iterate over the Bs!


This should be working nice and easy, i expect, so please someone tell me
how to do it properly!

It sounds like the EOArrayFault is not resolving at the right time. Have you been overriding the generated methods on the B EO? Did you fail to call super? It sounds to me like willRead() is not getting called on your EO when the components in the repetition are rendered.


Chuck

--
Coming in 2006 - an introduction to web applications using WebObjects and Xcode http://www.global-village.net/wointro


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: http://lists.apple.com/mailman/options/webobjects-dev/email@hidden

This email sent to email@hidden
References: 
 >Correction to: using relations in repetitions (From: Wolfram Stebel <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.