Hi Chuck!

You might want to simulate this using an attribute with write format that contains SQL to do this. E.g. something along the lines of "COLUMN + %V" In your code you would set the special attribute's value to the increment you want. On the next commit it would do the stuff.

The problem is that your real attribute would go out of sync and that your fake attribute would apply the increment on each commit.

You could also try dynamically adding the attribute in an editor to the editing context and remove it once saveChanges went trough.

Best,
Pierre


On Aug 16, 2007, at 11:53 PM, Chuck Hill wrote:

I recall someone making something that did this, but now I can't find it. I don't even recall how it worked. What it did was allow WO to update an attribute of a entity using bar = bar + 1 instead of bar = 7 so that updates from multiple sources would not step on each other.

Does this sound familiar to anyone?

Thanks!

Chuck

--

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects





_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/webobjects- lists%40houdah.com

This email sent to [EMAIL PROTECTED]

- - -
Houdah Software s. à r. l.
http://www.houdah.com

HoudahGeo: One-stop photo geocoding
HoudahSpot: Powerful Spotlight frontend



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to