Re: WOToOneRelationship default value
Re: WOToOneRelationship default value
- Subject: Re: WOToOneRelationship default value
- From: "Goh Keng Boon" <email@hidden>
- Date: Wed, 12 May 2004 10:16:37 +0800 (SGT)
Yup, i'm refering to the popupbutton using ToOneRelationship, but i cant
seems to figure out how to set the value for that :-)
KB
> KB,
>
> Are you referring to a default value in the relationship itself, or in
> a popup-menu (or similar) in a web page?
>
> For the former, you can use the awakeFromInsertion() method in your
> custom class (subclass EOGenericRecord) to set the default
> relationship. For the latter case I think you set the value attribute
> to the object for US when setting up the menu. Don't quote me on that
> though :)
>
> r
>
> On 11/05/2004, at 23:50, Goh Keng Boon wrote:
>
>> Hi, is it possible to have a default value for WOToOneRelationship?
>> For example i'm using a to 1relationship to the table "country", i
>> wish to have the value default to
>> "US" instead of "none", anyidea how can i achieve this? thanks alot.
_______________________________________________
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.