Re: Force Display Group to refetch, not consistent ??
Re: Force Display Group to refetch, not consistent ??
- Subject: Re: Force Display Group to refetch, not consistent ??
- From: Nathan Walker <email@hidden>
- Date: Wed, 24 Aug 2005 12:17:15 -0400
Well, I have just simply checked "Fetches on Load" and added the
below code and everything seems to be good now. I guess "Fetches on
Load" is the only for sure way to get fresh data all the time with a
display group ??
On Aug 24, 2005, at 11:58 AM, Baiss Eric Magnusson wrote:
I always do:
mydisplayGroup.fetch();
mydisplayGroup.updateDisplayedObjects();
and haven't seen any problems. I almost always set fetch on load
though.
Reading the docs, one would be inclined to use <qualifyDataSource>
rather than <fetch> but I do think you need the
<updateDisplayedObjects>.
On Aug 23, 2005, at 7:33 PM, email@hidden
wrote:
Date: Tue, 23 Aug 2005 20:06:41 -0400
From: Nathan Walker <email@hidden>
Subject: Force Display Group to refetch, not consistent ??
I am using this to get my display group to refetch and it works
sometimes and other times it doesn't work. Am I doing something
wrong?
displayGroup.setMasterObject(myMasterObject);
displayGroup.qualifyDataSource();
I do not have "Fetches on Load" checked on the display group
configuration because I want to control when objects are fetched.
Basically, I have a display group of comments and every time someone
adds a comment, I would like to save the new comment and cause the
comment list to refresh itself immediately to show the newly added
comment on the returned page with all the other comments. And
sometimes this works and other times it doesn't ???
----
Baiss Eric Magnusson
<http://www.Track-Your-Finances.com>
<http://www.CascadeWebDesign.com>
_______________________________________________
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