Re: Hide, show details button in WORepetition
Re: Hide, show details button in WORepetition
- Subject: Re: Hide, show details button in WORepetition
- From: David Elsner <email@hidden>
- Date: Mon, 19 Jul 2004 16:24:47 +1000
Say your WORepitition list = peopleList and your WORepitition item =
aPerson
then in the person class
add a variable: public boolean showDetail;
Then bind your WOConditional to aPerson.showDetail;
Then change your code on the page to the below code.
public WOComponent clickShowBtn(){
{
aPerson.showDetail = true;
return context().page();
}
Cheers
Dave
On 19/07/2004, at 3:51 PM, 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.
_______________________________________________
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.