Re: Creating a fetch that returns the same results as using "session.user.meetings" in WOBuilder
Re: Creating a fetch that returns the same results as using "session.user.meetings" in WOBuilder
- Subject: Re: Creating a fetch that returns the same results as using "session.user.meetings" in WOBuilder
- From: Chuck Hill <email@hidden>
- Date: Fri, 7 Apr 2006 16:49:37 -0700
On Apr 7, 2006, at 4:31 PM, David Holt wrote:
Yikes,
Now I am off in the trees!
Well, one of us it. Might be me today. I'm trying to answer these
in the swirl of many other things.
Two clarifications: one is that Meeting <-> ApplicationUser is many
to many.
Well, that does make it more tricky. EOF does not come with a "users
contains %@" for qualifying against to-many relationships. There are
options. I suspect that Project Wonder has one. It seems to have at
least one of everything. :-) You can also use one of Pierre
Bernards very clever qualifier extensions found at:
http://homepage.mac.com/i_love_my/webobjects.html
The second is that I am trying to get the fresh data with a
fetchspec.setRefreshesRefetchedObjects(true)
Seeing as how I am lost in the weeds, let me take a step back. What
are you trying to refresh? We need to make a distinction between
1) Which objects are in the relationship (e.g. have some attendees
been added or removed?)
2) The attributes of the objects in the relationship (e.g. meeting
time was changed?)
A refreshing fetching will refresh the data for (2) but not (1).
It seems that using the EOUtilities would get me right back where I
started when I was using the "session.user.meetings" binding from
WOBuilder!
Should I be thinking about this differently?
At this point, I am not sure. :-)
Chuck
On 7 Apr 2006, at 4:17 PM, Chuck Hill wrote:
Got lost in the forest on the first answer. I answered "How do I
set the qualifier for the user that is logged in?" rather than
the question you were really wanting an answer to.
Is perhaps what you are after? This assumes that Meeting has a
user() relationship to ApplicationUser.
--
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:
This email sent to email@hidden