• 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: Nathan Dumar <email@hidden>
  • Date: Tue, 11 May 2004 15:50:08 -0400

I don't know of a way to do it in EO Modeler within the relationship itself.

In WO Builder, use the selection attribute for the element you're using for making the choice (WOPopUpButton, for example). This doc will help:
http://developer.apple.com/documentation/WebObjects/Reference/ DynamicElements/index.html#//apple_ref/doc/uid/TP30001055


If this is something your user isn't able to see to make the selection, you can do it in your code when you create the new record.

Nathan


On May 11, 2004, at 7:50 AM, 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.


KB
_______________________________________________
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: 
 >WOToOneRelationship default value (From: "Goh Keng Boon" <email@hidden>)

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