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

Re: Retrieving selected value from WOPopUpButton


  • Subject: Re: Retrieving selected value from WOPopUpButton
  • From: james o <email@hidden>
  • Date: Fri, 9 May 2003 15:22:46 -0400

kitwana, bind string selected to WOPopupbutton's 'selection' binding...

when you call the saveObject method stringSelected will be put into your database.

hth,
./james

//begin code

public String stringSelected;

public WOComponent saveObject() {
	// place stringSelected's value into dataBaseString
	yourObject.takeValueForKey(stringSelected,"dataBaseString");
	return null;
}

public void setStringSelected(String newStringSelected)
    {
        stringSelected = newStringSelected;
    }





On Friday, May 9, 2003, at 02:37 PM, 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.

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

  • Prev by Date: RE: MSAccess
  • Next by Date: downloading dynamic images
  • Previous by thread: Re: Retrieving selected value from WOPopUpButton
  • Next by thread: downloading dynamic images
  • Index(es):
    • Date
    • Thread