• 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
Need Direct to Web Advice
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Need Direct to Web Advice


  • Subject: Need Direct to Web Advice
  • From: Justin Tocci <email@hidden>
  • Date: Sat, 21 Aug 2004 23:15:20 -0500

My data source is a Postgresql database that also serves to a Microsoft Access database. Problem is; data changed in Access causes WebObjects to be unable to make a change to that record.

I found some help, summarized here:

1) In your Application constructor, call: EOEditingContext.setDefaultFetchTimestampLag(0);

2) Every time you create an EOFetchSpecification, call setRefreshesRefetchedObjects(true) on it.

3) Override saveChanges and catch your exception (found a lot of options with this in Apple Documentation for EOF).

Problem is I don't know where to put the code for 2) or 3) unless I drop the D2W factory concept and start using the D2W palette stuff. That's kind of annoying after spending so much time tinkering with D2W. If someone could please confirm that I should move on to using the palette components I'd feel better about changing direction. Otherwise a bit of advice on how to override the save method in D2W would be really cool. Thanks all.

justin tocci
Fort Wayne, IN

Anyone interested in checking out a Postgresql driven WebObjects application drop me a line. I can give you a test user password for our customer service site.
_______________________________________________
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.



  • Prev by Date: inter-instance communication
  • Next by Date: [ANN] woproject 1.1.0.82 beta 3
  • Previous by thread: Re: inter-instance communication
  • Next by thread: [ANN] woproject 1.1.0.82 beta 3
  • Index(es):
    • Date
    • Thread