• 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: Newbie question about WORepetitions and WORadioButtons
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Newbie question about WORepetitions and WORadioButtons


  • Subject: Re: Newbie question about WORepetitions and WORadioButtons
  • From: Sacha Michel Mallais <email@hidden>
  • Date: Wed, 19 Jul 2006 08:46:14 -0700

On Jul 19, 2006, at 8:38 AM, Chip Myers wrote:

I'm currently displaying a list of objects in a WORepetition, with each object having a WORadioButton displayed beside it. Once the list finishes generating, I display 2 hyperlinks, edit and delete, whose operations can then be performed on any one object in the list. Within the WORepetition, I've created two variables ObjectList for list and ObjectItem for item.


o Object 1 o Object 2 . . . o Object n

edit    delete


TI'd like to perform an edit on one selected objectItem. Once the edit and delete buttons are generated, however, the objectItem has been populated with a value of null. How, is it possible to capture the objectItem that has been selected with the radiobutton?

Hyperlinks don't post forms: you have to use submit buttons instead. (Actually, I'm sure you can make a hyperlink act like a submit button -- probably using JavaScript -- but I'm guessing you didn't do that.) Also don't forget to make your form's Multiple Submit = true.


Note that if you put the edit and delete button _in_ the repetition, you would be able to know which one the user clicked by using the object bound to the repetition's item binding.


sacha


-- Sacha Michel Mallais 800 kg gorilla Global Village Consulting Inc. http://www.global-village.net/ PGP Key ID: 7D757B65 AIM: smallais 1. Never tell everything at once. -- Ken Venturi, Ken Venturi's Two Great Rules of Life



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Newbie question about WORepetitions and WORadioButtons (From: Chip Myers <email@hidden>)

  • Prev by Date: Newbie question about WORepetitions and WORadioButtons
  • Next by Date: Datetime and webObkects 5.3.1
  • Previous by thread: Newbie question about WORepetitions and WORadioButtons
  • Next by thread: Re: Newbie question about WORepetitions and WORadioButtons
  • Index(es):
    • Date
    • Thread