• 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: Populating a WOPopUpButton
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Populating a WOPopUpButton


  • Subject: Re: Populating a WOPopUpButton
  • From: Art Isbell <email@hidden>
  • Date: Fri, 18 Apr 2003 15:35:14 -1000

On Friday, April 18, 2003, at 01:56  PM, Kitwana Akil wrote:

I have a table in my database called 'Meetings'. 'Meetings' has several attributes: date, time, contact, county, place, event. I would like to populate a WOPopUpButton with the names of the attributes. How would I go about doing this?

You could bind an array containing a list of attribute names to the "list" key of the pop up button. There are several ways to populate this array.


	You could hard-code the names in your component code.

You could get the Meetings EOEntity from the EOModelGroup and get the list of attribute names from it. Assume the EOEntity is assigned to a component instance variable, "entity". If the entity has no class relationships, "entity.classPropertyNames" could be bound to the pop up button's list key. If class relationships exist, you could populate an array in the component with the list of appropriate attribute names by sending the entity an attributes() or classProperties() message and process the results into a list of attribute names.

Aloha,
Art
_______________________________________________
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: Populating a WOPopUpButton
      • From: Kitwana Akil <email@hidden>
References: 
 >Populating a WOPopUpButton (From: Kitwana Akil <email@hidden>)

  • Prev by Date: Populating a WOPopUpButton
  • Next by Date: Re: packages and WOBuilder keys
  • Previous by thread: Populating a WOPopUpButton
  • Next by thread: Re: Populating a WOPopUpButton
  • Index(es):
    • Date
    • Thread