• 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: Gordon Belray <email@hidden>
  • Date: Mon, 19 Jul 2004 10:55:33 -0400

Hi Kevin,

you can try this, bind the check box "checked" to showHideDetail:

      public boolean showHideDetail() {
	// assume exists
         itemToBeShownHiden = currentItemInRepetition;
         return
arrayOfItemsToBeShownHidden.containsObject(itemToBeShownHiden);
     }

      public void setShowHideDetail(boolean isChecked) {
         if (isChecked) {
             // if the image is checked and not in the array, add it, if
not remove it
             if (!
arrayOfItemsToBeShownHidden.containsObject(itemToBeShownHiden)){

arrayOfItemsToBeShownHidden.addObject(itemToBeShownHiden);
             }
         }
         else
             if
(arrayOfItemsToBeShownHidden.containsObject(itemToBeShownHiden)){

arrayOfItemsToBeShownHidden.removeObject(itemToBeShownHiden);
             }
     }

    public NSMutableArray arrayOfItemsToBeShownHidden(){
         return arrayOfItemsToBeShownHidden();
     }

     public void setArrayOfItemsToBeShownHidden(NSMutableArray
newArrayOfItemsToBeShownHidden) {
         arrayOfItemsToBeShownHidden = neArrayOfItemsToBeShownHidden;
     }

hope this helps,
Gordon

On Monday, July 19, 2004, at 01:51 AM, Kevin Xiaowen Ren wrote:

> 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?
>
> Thanks
>
> kevin _______________________________________________
> 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.
>
>
"Where do the stars come from?"
"From the moon."
"Where does the moon come from?"
"From the stars."
				Maxwell Delphinus age 2.5

Gordon Belray
Information Architect
Information Technology Services
University of Toronto
416.946.8617 or 416.946.8151
_______________________________________________
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: Calling Stored Procedure from web objects App
  • Next by Date: Re: Java Monitor Refuse New Sessions not working
  • Previous by thread: Re: Hide, show details button in WORepetition
  • Next by thread: Re: Hide, show details button in WORepetition
  • Index(es):
    • Date
    • Thread