• 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 Refresh Relation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Force Refresh Relation


  • Subject: Re: Force Refresh Relation
  • From: "Daniele Corti" <email@hidden>
  • Date: Tue, 18 Sep 2007 17:37:17 +0200



2007/9/18, Kieran Kelleher <email@hidden>:
Not sure if I fully understand what you are doing, but

1) all changes to objects must be made in an EditingContext

2) To get freshest data, create a new editing context and set its fetch timestamp lag to current time before fetching into it.

I use only session().defaultEditingContext(). Can I set it's fetch timestamp lag, without problems?

HTH, Kieran

On Sep 18, 2007, at 11:05 AM, Daniele Corti wrote:

Hi all,

   I don't know why but my apps seem to hate me today...
I've prepared a direct action to populate some EOs  relations by a xls file, by HSSF, and it works perfectly ;-)

Ok, and then, watchin at my EOs, throught an ec.objectWithFetchSpecification, I notice that none changes has been applied.

I looked in the logs, and I see that Objects where correctly created but, calling the relation get method, the objects are not displayed!

I also used an EOFetchSpecification with setRefreshesRefetchedObjects(true), so I don't know why the objects are not displayed!

is there another way to force the refetch of a relationship?


--
Daniele Corti
AIM: S0CR4TE5
Messenger: email@hidden

--
Computers are like air conditioners -- they stop working properly if you open
WINDOWS

--
What about the four lusers of the apocalypse? I nominate:
"advertising", "can't log in", "power switch" and "what backup?"
--Alistair Young
 _______________________________________________
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




--
Daniele Corti
AIM: S0CR4TE5
Messenger: email@hidden

--
Computers are like air conditioners -- they stop working properly if you open
WINDOWS

--
What about the four lusers of the apocalypse? I nominate:
"advertising", "can't log in", "power switch" and "what backup?"
--Alistair Young
 _______________________________________________
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 Refresh Relation
      • From: Kieran Kelleher <email@hidden>
References: 
 >Force Refresh Relation (From: "Daniele Corti" <email@hidden>)
 >Re: Force Refresh Relation (From: Kieran Kelleher <email@hidden>)

  • Prev by Date: Re: Force Refresh Relation
  • Next by Date: Re: Force Refresh Relation
  • Previous by thread: Re: Force Refresh Relation
  • Next by thread: Re: Force Refresh Relation
  • Index(es):
    • Date
    • Thread