• 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: Passing and Object via DirectAction
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Passing and Object via DirectAction (From: James Cicenia <email@hidden>)
 >Re: Passing and Object via DirectAction (From: Chuck Hill <email@hidden>)
 >Re: Passing and Object via DirectAction (From: James Cicenia <email@hidden>)

  • Prev by Date: Re: Passing and Object via DirectAction
  • Next by Date: Re: "False" call to handleSessionRestorationErrorInContext when having a relative reference to an image
  • Previous by thread: Re: Passing and Object via DirectAction
  • Next by thread: "False" call to handleSessionRestorationErrorInContext when having a relative reference to an image
  • Index(es):
    • Date
    • Thread