• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Force Display Group to refetch, not consistent ??
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Force Display Group to refetch, not consistent ??


  • Subject: Re: Force Display Group to refetch, not consistent ??
  • From: Chuck Hill <email@hidden>
  • Date: Wed, 24 Aug 2005 12:12:15 -0700

Correct on all counts.

Chuck


On Aug 24, 2005, at 11:42 AM, Nathan Walker wrote:

Thank you for the clarification, that's exactly what I was curious about. So what's the proper way I should do it? Should I use the display groups insert methods to add a new object to the display and when do I save Changes with that to actually write that new record to the database? And do I saveChanges through the display group ? And I assume you are suggesting NOT to use defaultEditingContext().insertObject(myObject); when adding objects in a display group ?

Thanks,
Nathan


On Aug 24, 2005, at 1:32 PM, Chuck Hill wrote:


I think the problem lies in your understanding of the how display groups work. It does a fetch and holds the result in an NSArray the same as you might do in your code. If you later insert an object into some other EC (the default or otherwise), how is the display group to know that this particular object is to be added to its internal NSArray and where the object is to be added? The only thing you can do is to tell it to do a complete new fetch. Avoiding this work is why the display group has the insert... methods.


Chuck


On Aug 24, 2005, at 8:47 AM, 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, webobjects-dev- 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: <84128D03-BAB4-48EE- 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:
40visionworxpro.com


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:
40global-village.net


This email sent to email@hidden



--
Practical WebObjects - a book for intermediate WebObjects developers who want to increase their overall knowledge of WebObjects, or those who are trying to solve specific application development problems.
http://www.global-village.net/products/practical_webobjects











--
Practical WebObjects - a book for intermediate WebObjects developers who want to increase their overall knowledge of WebObjects, or those who are trying to solve specific application development 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
  • Follow-Ups:
    • Re: Force Display Group to refetch, not consistent ??
      • From: Nathan Walker <email@hidden>
References: 
 >Re: Force Display Group to refetch, not consistent ?? (From: Ricardo Strausz <email@hidden>)
 >Re: Force Display Group to refetch, not consistent ?? (From: Nathan Walker <email@hidden>)
 >Re: Force Display Group to refetch, not consistent ?? (From: Chuck Hill <email@hidden>)
 >Re: Force Display Group to refetch, not consistent ?? (From: Nathan Walker <email@hidden>)

  • Prev by Date: Re: Force Display Group to refetch, not consistent ??
  • Next by Date: Re: Force Display Group to refetch, not consistent ??
  • Previous by thread: Re: Force Display Group to refetch, not consistent ??
  • Next by thread: Re: Force Display Group to refetch, not consistent ??
  • Index(es):
    • Date
    • Thread