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: Ricardo Strausz <email@hidden>
- Date: Wed, 24 Aug 2005 13:37:12 -0500
I am not sure both editing contexts are the same... (you can check that too),
but if you insert the object into the display group, you do not need to save to see the changes!
On the other hand (referring to your other mail), if you refault an ec, it does not fetch until you said so!
It simply "forgets" what it knows, so far.
HIH
Dino
On Aug 24, 2005, at 10:47, Nathan Walker wrote:
I am only qualifying the data source. Do I really need to qualify both ? that is just silly. and I have tried using the other (qualifyDisplayGroup) and it seems to do nothing as well. ??
No, I haven't tried inserting the EO into the display group, I insert the EO into the default editing context (defaultEC().insertObject(newBugComment);) and save changes on that which should reflect changes on the display group because the display group is using the same editing context ?? what gives..
It's hard to track exactly what is causing it to happen sometimes and when doesn't. It is very odd to me.
On Aug 24, 2005, at 11:12 AM, Ricardo Strausz wrote:
Hola Nathan!
On Aug 23, 2005, at 21:33, email@hidden wrote:
Message: 6
Date: Tue, 23 Aug 2005 20:06:41 -0400
From: Nathan Walker <email@hidden>
Subject: Force Display Group to refetch, not consistent ??
To: WOdev List <email@hidden>
Message-ID: <email@hidden>
Content-Type: text/plain; charset="us-ascii"
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 ???
Had you try to insert the new eo into the display group (instead of re-fetching)?
Can you find out when it works, and when it does not?
That would be very helpful!
Remember also that display groups manages 2 qualifiers; are you sure that you are only qualifying the data source?
Suerte!
Dino
_______________________________________________
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
_______________________________________________
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