• 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: Retrieving selected value from WOPopUpButton (Solved)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Retrieving selected value from WOPopUpButton (Solved)


  • Subject: Re: Retrieving selected value from WOPopUpButton (Solved)
  • From: Kitwana Akil <email@hidden>
  • Date: Fri, 9 May 2003 18:14:23 -0400

Thanks to Kaj, Seejo, and James! My mistake was binding the String object to the "selectedValue" attribute. Once I bound the String to the "selection" object everything works as it should. Thanks again.

Kitwana


On Friday, May 9, 2003, at 02:59 PM, Kaj Hejer wrote:

At 14:37 -0400 09-05-2003, Kitwana Akil wrote:
Hi,

I have an WOPopUpButton that I have populated with values from an NSArray. These values are not from a table:

NSArray values = new NSArray( new String[] { "One", "Two", "Three", "Four", "Five" } );

I have bound the NSArray to the "list" attribute for the WOPopUpButton. I am unable to figure out how to retrieve the values from the "selectedValue" attribute. I want to take that value and assign it to a String object.

Could someone please explain how this is done and maybe provide a code example of this. Thank you.



Hi!

You can bind a String object to the selection binding of the WOPopUpButton.

If you are on osx you can find an application with an example on how to use a WOPopUpButton in the following directory:

   /Developer/Examples/JavaWebObjects/WOExamples

(on windows the path is a bit different I guess)

You find alot of other very usefull examples in the JavaWebObjects directory.


-Kaj :)
_______________________________________________
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: 
 >Re: Retrieving selected value from WOPopUpButton (From: Kaj Hejer <email@hidden>)

  • Prev by Date: Re: MSAccess
  • Next by Date: Re: Sort Ordering while using relationships
  • Previous by thread: Re: Retrieving selected value from WOPopUpButton
  • Next by thread: Re: Retrieving selected value from WOPopUpButton
  • Index(es):
    • Date
    • Thread