Re: Your D2W question on a mailinglist
Re: Your D2W question on a mailinglist
- Subject: Re: Your D2W question on a mailinglist
- From: Justin Tocci <email@hidden>
- Date: Mon, 23 Aug 2004 15:41:35 -0500
I have a lock on the primary key(s) and change_stamp columns in each
table. If the change_stamp changes it means someone else has made an
update (most likely in an Access database connected to the same
Postgresql database) In that case, I want to block the WebObjects
update, discard the proposed changes, refresh the record with the
latest data from the database, and present the new data to the user so
they can make their change again if they still want to do so.
I have given up on D2W factory stuff for now because I'm confused as to
how I could get a fetchspec to work with it, and I only have a lead on
a fix if fetchspecs are involved. I am going to attempt to use the D2W
palette stuff now; I'm hoping it'll work with fetchspecs because if I
can put my fetches in appendToResponse most of my troubles are over.
I'll have good data 99% of the time. In the rare instance of an update
after a page is requested and before the person can hit save, I have
found some stuff in the Apple EOF docs that I think I can use to catch
any exception and follow my above guidelines.
If I can get this working I'm going to be able to move several
applications from Microsoft Access to WebObjects. Currently several
people use Access via Citrix (on Terminal Server, yuk!), so they'll be
very excited to just log into a browser and do their stuff without
getting booted off every once in a while.
justin tocci
fort wayne, in
On Aug 23, 2004, at 3:19 PM, Bernhard Gruber wrote:
Hi,
I just wonder if you use locks on all properties in your eomodel.
If the lock icon (not the primary key) is enabled the fetch query
includes this property.
And if this property did change the update is not possible.
Regards
Bernhard
_______________________________________________
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.