• 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: Hide, show details button in WORepetition
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Hide, show details button in WORepetition


  • Subject: Re: Hide, show details button in WORepetition
  • From: William Hatch <email@hidden>
  • Date: Mon, 26 Jul 2004 14:15:40 -0400

Kevin Xiaowen Ren7/19/04 1:51 email@hidden

> Hi all,
> I use WPRepetition to display some Objects with object.name string,
> following this name I setup "Show Or "Hide" button.
> I want this button to control show/hide the detail of this selected
> object(item).
> Here is my java code:
> public WOComponent clickShowBtn(){
>        showDetail = false;
>        return this.context().page();
>    }
>    public WOComponent clickHideBtn(){
>           showDetail = true;
>           return this.context().page();
>       }
>
> The problem is when I click this button, it show/hide for every item in
> this repetition, not for the particularly selected item.
>
> How to control this function? Has any idea?Any javascript could do this?

Hi Kevin,

You might want to try using a nested component within the repetition and
then create a binding for it to get the item iterator.  Then, in your custom
component, you can add the link to show/hide and it will do the right thing.
You could probably use some java script and avoid a submit as well, but I
can't help you there.  Hope that helps.

--
William Hatch
Eng. Visual Media Collection
Cornell Lab of Ornithology
Macaulay Library
Voice (607) 254-2116
Fax (607) 254-2439
_______________________________________________
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: 
 >Hide, show details button in WORepetition (From: Kevin Xiaowen Ren <email@hidden>)

  • Prev by Date: Re: Cached EO Objects
  • Next by Date: Re: Cached EO Objects
  • Previous by thread: Re: Hide, show details button in WORepetition
  • Next by thread: Calling Stored Procedure from web objects App
  • Index(es):
    • Date
    • Thread