• 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: Ray Ackland <email@hidden>
  • Date: Wed, 12 May 2004 08:49:53 +1200

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.


  • Follow-Ups:
    • Re: WOToOneRelationship default value
      • From: "Goh Keng Boon" <email@hidden>
References: 
 >WOToOneRelationship default value (From: "Goh Keng Boon" <email@hidden>)

  • Prev by Date: Re: WOToOneRelationship default value
  • Next by Date: Re: WebObjects Quicktime for Java
  • Previous by thread: Re: WOToOneRelationship default value
  • Next by thread: Re: WOToOneRelationship default value
  • Index(es):
    • Date
    • Thread