Re: Populating a WOPopUpButton
Re: Populating a WOPopUpButton
- Subject: Re: Populating a WOPopUpButton
- From: Kitwana Akil <email@hidden>
- Date: Sun, 20 Apr 2003 18:59:59 -0400
thanks, Art.
On Friday, April 18, 2003, at 09:35 PM, Art Isbell wrote:
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.
_______________________________________________
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.