Re: Help: How to use WOPopupButton
Re: Help: How to use WOPopupButton
- Subject: Re: Help: How to use WOPopupButton
- From: Art Isbell <email@hidden>
- Date: Sun, 5 Feb 2006 09:06:32 -1000
On Feb 5, 2006, at 4:50 AM, Jim Wong wrote:
If I do what's described below and have my selection of the
WOPopupButton to be an object (Country), I want to pass this
object's countryID attribute to a string tempCountry in my code.
How can I do so?
A primary key such as countryID should almost never be a class
property and thus accessible in one's Java code. Instead, set
tempCountry to the Country object selected by the WOPopupButton.
I have occasionally needed a primary key to store in a cookie, for
example. One can use EOUtilities.primaryKeyForObject() to get the
primary key of an object.
Aloha,
Art
_______________________________________________
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