• 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: WOImageButton: How to access other Button-tags from the Button-actionmethod?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: WOImageButton: How to access other Button-tags from the Button-actionmethod?


  • Subject: Re: WOImageButton: How to access other Button-tags from the Button-actionmethod?
  • From: Florijan Stamenkovic <email@hidden>
  • Date: Thu, 12 May 2005 13:58:54 +0200


On May 12, 2005, at 13:08, Lutz Steinfeld wrote:

Hallo,

in a WORepetition I have placed a WOImageButton for deleting something,
identified by the index of the repetition.
Therefore I have bound an action "delete" to the action tag of
WOImageButton, created there an new tag "todelete" and bound to the index of
WORepetition.

if i understand you correctly, you created a binding on the WOImageButton like "todelete = index". that is not necessary.


if you have an image button that calls a method in a repetition, you just need one binding and that is the action binding.

if you are using the count / index combination of bindings on the repetition, index will be set on the correct number if you click on your button. you just call the method like

public void deleteItem()
{
//for example
myArray.removeObjectAtIndex(index); //where index is bound to the index of the repetition
}


if you are using the list / item combination of bindings on the repetition, the item is set as you click on the button. so, you have no problem there.

HTH
Flor


But how can I get in action "delete" the value of "todelete" for programming
the deletion?


Thanks for your advices
L.Steinfeld

 _______________________________________________
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

_______________________________________________ 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: 
 >WOImageButton: How to access other Button-tags from the Button-actionmethod? (From: "Lutz Steinfeld" <email@hidden>)

  • Prev by Date: Re: WOImageButton: How to access other Button-tags from the Button-actionmethod?
  • Next by Date: WO 5.2.4 API symbol lookup problem
  • Previous by thread: Re: WOImageButton: How to access other Button-tags from the Button-actionmethod?
  • Next by thread: Image resizing in app -> Sudden death
  • Index(es):
    • Date
    • Thread