Re: detail WODisplayGroup & FetchSpec
Re: detail WODisplayGroup & FetchSpec
- Subject: Re: detail WODisplayGroup & FetchSpec
- From: Art Isbell <email@hidden>
- Date: Sat, 22 May 2004 14:11:38 -1000
On May 22, 2004, at 12:58 PM, Nathan Dumar wrote:
Is there some reason why, in WOBuilder, a detail WODisplayGroup cannot
use a Fetch Spec?
Yes.
When I check the box for "Has detail data source" the Fetch Spec menu
is deactivated. Is there some way I can have both?
I don't think so. An EODetailDataSource is designed to qualify on a
master-detail relationship period. It doesn't support any additional
qualification.
Entity Org owns entity User. User owns UserType. I would like to
fetch all of the User objects that are owned by an Org object, and
that have a UserType.typeNum > 0 and < 9.
Many WO developers don't use WODisplayGroups at all (me included).
They seem to be fine for simple operations, but when you need to do
something more complex like what you need to do, a WODisplayGroup is
just more trouble than it's worth. I would simply fetch the user
objects into an editing context, "editingContext", in one simple
statement and forget about WODisplayGroups:
(Assume "orgObject" is an Org object and that User has "org" and
"userType" relationships)
NSArray users = EOUtilities.objectsWithQualifierFormat(editingContext,
"User", "org = %@ and userType.typeNum > 0 and userType.typeNum < 9",
new NSArray(orgObject));
Aloha,
Art
_______________________________________________
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.