WOPopUpButton - list & selection not working
WOPopUpButton - list & selection not working
- Subject: WOPopUpButton - list & selection not working
- From: "Thomas Peters" <email@hidden>
- Date: Wed, 19 Feb 2003 23:31:48 -0500
WOPopUpButton
list
Array of objects from which the WOPopUpButton derives its values.
selection
Object that the user chose from the selection list. For the college example,
selection would be a college object.
selectedValue
Value that is used with direct actions to specify which option in the listis
selected.
The only documentation I can find is in the PDF under the DynamicELements
directory. I have also review the example in 'PetStoreWOJava' where the
'UpdateAccount.wo' contains 2 WOPopUpButton for states and countries.
I have products and categories, where categories is a parent object to
products. Category is defiled as a category_id and a category_name. The stored
value is category_id and the displayed value is category_name.
I can't seem to get the bindings right for this, or I just do not understand
how it works. I have set the list binding to an NSArray containing the
categories. I have set the selection to the product.category_id. This follows
the pattern exemplified in the example, but throws an exception because
'selection' binding returns the DisplayedValue of the WOPopUpButton. What am I
doing wrong?
Tom
_______________________________________________
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.