Need Direct to Web Advice
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.