Displaying Values Through Flattened Relationships
Displaying Values Through Flattened Relationships
- Subject: Displaying Values Through Flattened Relationships
- From: "Janice M. Cheung" <email@hidden>
- Date: Tue, 03 Feb 2004 13:12:16 -0500
Greetings!
I have a question that may seem trivial, but one that is causing me
much distress.
I've created several Booleans and Conditionals, to retrieve values
from the database matching their corresponding criteria.
For example:
public boolean isPublishExternal(){
if ((revAff.contact().phoneNumber()!=null) &&
(revAff.contact().publishExternal().equals("T")) &&
(revAff.contact().isPrimary().equals("T")))
return ((revAff.contact().phoneNumberr().equals("")));
else return true;
}
I have checked against the database, and many phone numbers
(phoneNumber) match the criteria as outlined above, but fail to appear in
the application itself ...
*UNLESS* the criteria exactly matches the very first record of
phoneNumber listed in the database (containing the smallest contact_pk
value).
Only when the phoneNumber with the smallest contact_pk value
fulfills the criteria of the aforementioned 'true' values, will the
phone number
be returned. Otherwise, phoneNumber will not be returned at all.
(There are different variations of phoneNumber in the database
(publishExternal, publishInternal, primary, department, phoneBook, etc.))
Is there something that gets lost when I try retrieving values with
flattened (toMany) relationships in the EOModel?
Any guidance and or advice to shift me in the right direction would
be greatly appreciated!
Thank you!
Janice
_______________________________________________
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.