Re: Passing and Object via DirectAction
Re: Passing and Object via DirectAction
- Subject: Re: Passing and Object via DirectAction
- From: Sacha Mallais <email@hidden>
- Date: Wed, 30 Mar 2005 11:32:24 -0800
On Mar 30, 2005, at 11:23 am, James Cicenia wrote:
So I would have to make the PK visible then. I thought I could just
get it like this:
EOGlobalID myGlobalID = ec.globalIDForObject(myObject());
EOKeyGlobalID myKeyGlobalID = (EOKeyGlobalID) myGlobalID;
String stringID =
((Integer)myKeyGlobalID.keyValuesArray().objectAtIndex(0)).toString();
That should work. Then use EOKeyGlobalId.globalIDWithEntityName() to
change it back. You don't need to expose the PK.
On Mar 30, 2005, at 12:21 PM, Chuck Hill wrote:
It will be easiest to pass the PK or something else unique that can
be used to fetch the object.
Though you _could_ serialize the whole object... :-)
sacha
--
Sacha Michel Mallais - 400 lb. chimp
Global Village Consulting Inc.: http://www.global-village.net/
1. Never tell everything at once.
-- Ken Venturi, Ken Venturi's Two Great Rules of Life
_______________________________________________
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