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

Re: using WORadioButton.


  • Subject: Re: using WORadioButton.
  • From: Art Isbell <email@hidden>
  • Date: Sun, 11 Jul 2004 14:59:04 -1000

On Jul 11, 2004, at 4:00 AM, Kranthi Sagar Borra wrote:

I have a requirement in which my page displays No of years completed" and 4 radio buttons 1,2,3,4 are show and now I will check one of these and save the values in the database. And again when I load this page, I am retrieving these values, but now how can I show a radio button as selected. i.e. suppose I select 4 and save and next time when I load the same page again, I should be able to see that only radio button 4 is checked. can somebody tell em how I can handle this.

If you bind the "value" key of each radio button to the string value of each radio button (e.g., "1", "2", etc.) and the "selection" key to the variable, variable path, or method that contains or returns the fetched value, the radio button in which the values of the "selection" and "value" keys are equal will be the radio button selected.


You could instead bind boolean methods to the "checked" key of each radio button. Each boolean method would compare the value of the radio button to which it is bound with the fetched value, returning whether the values match. That radio button for which the bound method returns true would be selected.

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.


  • Prev by Date: Re: Explain "take"
  • Next by Date: Re: Explain "take"
  • Previous by thread: using WORadioButton.
  • Next by thread: Single "query" on multiple attributes
  • Index(es):
    • Date
    • Thread