Re: detail WODisplayGroup & FetchSpec
Re: detail WODisplayGroup & FetchSpec
- Subject: Re: detail WODisplayGroup & FetchSpec
- From: Nathan Dumar <email@hidden>
- Date: Sun, 23 May 2004 21:52:16 -0400
I like your solution a lot more. Thank you.
Nathan
On May 22, 2004, at 8:11 PM, Art Isbell wrote:
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.
============= Signature File =============
Put your email in an envelope -- use PGP encryption.
Get your privacy for FREE at
http://www.pgp.com/products/freeware.html
My public key:
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: PGP 8.0.3 - not licensed for commercial use: www.pgp.com
mQGiBECT2FURBADXMP4OYe1GUkK8lhRrQzQ6Hbja53sxs+AKmsrFcDBz/ee8Qxwk
We4ewef3V6RhDh33Vu2nAlqvny15d7od0+2Z1BINpVGCxfhMbVzwWhHYvEnVwiaB
bBsm7TIfplJiGiwA/AjQpw3qgd4TX1gg0erkDV4K+nDJYppP7oN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/VhOSdvNILSd5JEHNmszbDgNRR0PfIizHHxbLY7288kjwEPwpVsYjY67
VYy4XTjTNP18F1dDox0YbN4zISy1Kv884bEpQBgRjXyEpwpy1obEAxnIByl6ypUM
2Zafq9AKUJsCRtMIPWakXUGfnHy9iUsiGSa6q6Jew1XrPdYXAAICEADApgbk/yZN
MlN+DmzRRr8odhOxOHAZKdrB/2GWZeZJl/TNHY0kMJhnZhGO8SH2E2owUK3aGP1s
vQMANVdE/UEQZmAYfrUzXVtCbxqlJ7u8kufAQ23PhXSDQ4Lp9/xgETACEdDS08AO
0cnNEs1IeFokrg6Qpcnl8hwi6xvE9Y/SH/BHl/F96mRCTp8azZHyXtuHoX/GAghw
M8xrBs5pAjU7P7W3C2OuX4/22GXNJnye0ibDKnyqtgOASSh7jPNruR4T2W764Mlj
Jpz0koCmdC8Cmk3Z4Nt5YV2EbnjxrWGP2HwMZkl/8BnKPQ2G/GYeMftdjkI+itAd
cg7hwfoEnVrYIVo8fSy81Tw4T1yI2v4A46T85G8yjlJz/BODWll2ZUOg6J7eYgo6
gYgN6vt2hjR41XfpSGwOdm2qyEvPGPnuy7Y5mmryfwnvp0aRE7BClgjX/mpGBKsV
lmuNME3JLSeCV8R4GC54B/MDj0OOgC06XW+V04zU+F5aPpHr+sfG4iSj6KEZsrNr
X6nnK0TUS3yoTjVB1lIm6P7nTycYCjhVH+mk9kkTnndy7a2LdcIX+Th/bJ1ag5/w
i7ZOBolQSDlMGhPxxvay+nJpxBtNt2QSOxYXH9b9hirpRgXkH1mqjlge7HO+Y0RI
0Q6JQu8nMa7Ya/Mdgbai24a5dJ2AnTZoOokAUgQYEQIAEgUCQJPYVQUJAjGfAAUb
DAAAAAAKCRAf/cF+zZseG0IiAJ93gYD6MupLGYXuddvgnZIWPpp/UgCg4vKH1Ozv
jXvQOGG/WV69liwceww=
=2bju
-----END PGP PUBLIC KEY BLOCK-----
This key expires on July 1, 2004. Request a new key on or after this
date.
_______________________________________________
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.