• 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: Looking for an update foo set bar = bar + 1 solution for WO
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Looking for an update foo set bar = bar + 1 solution for WO


  • Subject: Re: Looking for an update foo set bar = bar + 1 solution for WO
  • From: Pierre Bernard <email@hidden>
  • Date: Fri, 17 Aug 2007 14:38:54 +0200

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@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden


This email sent to email@hidden

- - - 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@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Looking for an update foo set bar = bar + 1 solution for WO
      • From: Chuck Hill <email@hidden>
References: 
 >Looking for an update foo set bar = bar + 1 solution for WO (From: Chuck Hill <email@hidden>)

  • Prev by Date: Re: WebSphere connection pool and EOModeler
  • Next by Date: Using WO components inside HTML tags
  • Previous by thread: Looking for an update foo set bar = bar + 1 solution for WO
  • Next by thread: Re: Looking for an update foo set bar = bar + 1 solution for WO
  • Index(es):
    • Date
    • Thread