Re: Setting an attribute based on PK?
Re: Setting an attribute based on PK?
- Subject: Re: Setting an attribute based on PK?
- From: Anjo Krank <email@hidden>
- Date: Sun, 25 Apr 2004 18:47:45 +0200
- Xx-reply-to: email@hidden
Am 25.04.2004 um 15:07 schrieb Ashley Aitken:
In these days and times, is the first sign of madness replying to your
own posts?
Naw, only if you forget that you wrote them in the first place:)
On 25/04/2004, at 4:16 PM, Ashley Aitken wrote:
I want to set an attribute (not the primary key) based on the
primaryKey value. But, of course, the primary key is not generated
until during the initial saveChanges.
Just saw some code on WODev (thanks to all who have created that
wonderful resource) for generating primary keys on insert. I will try
that and see how it goes.
As you're using Project Wonder anyway, you could simple subclass
ERXGenericRecord or implement the ERXGeneratesPrimaryKeyInterface. Of
course, you then need to ask the DBC for the primary keys in advance
for the next key(s).
Thanks to all those who have replied to my post ;-)
Cheers, Anjo
_______________________________________________
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.