• 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: Help: How to use WOPopupButton
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help: How to use WOPopupButton


  • Subject: Re: Help: How to use WOPopupButton
  • From: Art Isbell <email@hidden>
  • Date: Mon, 16 Jan 2006 16:19:02 -1000

On Jan 16, 2006, at 3:51 PM, email@hidden wrote:

I have a table "Country" which contains names of all the countries in the world.
I want it to be displayed in a WOPopupButton in a form for selection. But can't
seem to get the data to be displayed in the list of the popup button. What are
the bindings, keys or actions i have to configure?

If you want the selection to be a country name (String):

WOPopUpButton Key   Bound To
list                countryNames NSArray
item                countryNameItem String
selection           selectedCountryName String
escapeHTML          false

	But if you want the selection to be a country object (Country):

WOPopUpButton Key   Bound To
list                countries NSArray
item                countryItem Country
displayString       countryItem.name
selection           selectedCountry Country
escapeHTML          false

I'm sure users other than me hate popup buttons that contain so many items that they extend off the edge of the screen. Instead, please consider using a WOBrowser if you have sufficient room on your component. The only binding difference:

WOBrowser Key Bound To
selections selectedCountryNames or selectedCountries NSArray containing a single item


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


  • Follow-Ups:
    • Re: Help: How to use WOPopupButton
      • From: Robert Walker <email@hidden>
References: 
 >Help: How to use WOPopupButton (From: email@hidden)

  • Prev by Date: Help: How to use WOPopupButton
  • Next by Date: Re: Help: How to use WOPopupButton
  • Previous by thread: Help: How to use WOPopupButton
  • Next by thread: Re: Help: How to use WOPopupButton
  • Index(es):
    • Date
    • Thread