• 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: WOToOneRelationship default value
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >Re: WOToOneRelationship default value (From: Ray Ackland <email@hidden>)

  • Prev by Date: Re: Universal change for link URLs?
  • Next by Date: DatabaseAccess
  • Previous by thread: Re: WOToOneRelationship default value
  • Next by thread: Re: XML and NSDictionary
  • Index(es):
    • Date
    • Thread