• 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: Pb updating a to-many relationship with refaultAllObjects()
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Pb updating a to-many relationship with refaultAllObjects()


  • Subject: Re: Pb updating a to-many relationship with refaultAllObjects()
  • From: George Domurot <email@hidden>
  • Date: Sat, 15 Nov 2003 12:53:09 -0500

Jean:

For best performance, you probably want to avoid editingContext.refaultAllObjects(). I'm not aware of a method to refault a specific relationship (although, one probably exists). A solid solution is to use a display group and/or fetch specification to fetch your objects, both will produce your desired result.

-George

On Nov 14, 2003, at 5:02 PM, Jean Pierre Malrieu wrote:

Hi,

I have a component displaying the items of a to-many relationship in a repetition. Therefore I am not fetching the items. WO does it for me.
Because the items in the to-many can be changed by another application, I have added a "Refresh" button to my component. This button is bound to an action that calls ec.refaultAllObjects() and returns the current page.


But if an item has been added to the to-many relationship by another application, calling refaultAllObjects() does not update the list of items in my component.
Is it normal behaviour?
What is the solution?


Thanks.

Jean Pierre.
_______________________________________________
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.
_______________________________________________
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.

References: 
 >Pb updating a to-many relationship with refaultAllObjects() (From: Jean Pierre Malrieu <email@hidden>)

  • Prev by Date: Re: Subclassing WOImage
  • Next by Date: Re: Subclassing WOImage
  • Previous by thread: Re: Pb updating a to-many relationship with refaultAllObjects()
  • Next by thread: Re: Pb updating a to-many relationship with refaultAllObjects()
  • Index(es):
    • Date
    • Thread