Select/Unselect All

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Select/Unselect All

Balachandar.P

Hi,

 I created list of check boxes and created one check box at header level. when i clicked header level check box its all check boxes selected and try to deselect its all unselected. but what my question is

how to do this --->
1)   if i selected all list of check boxes, header level check box should automatically selected
2)   if i selected header level check box, and its selected all after i deselect one of the list check box i need to deselect header level check box.


give me any suggestion abt this

-Bala
Reply | Threaded
Open this post in threaded view
|

Re: Select/Unselect All

Louis Ratzesberger-2
Hi Bala,

Not sure where there is an example of this, but the header
checkbox needs to reference a different instance than all
the others, and the others in the list need to reference the
same.

If your page has the inspector, you should see the text
appear/disappear when any item in the list is checked.

The header checkbox requires an action element which
inserts or deletes all the strings into instance the list
is bound to.

Let me know if you need a code sample.  There is a sample
for the list, but it sounds like you have that working:

http://blog.orbeon.com/2009/02/gmail-like-ui-to-select-multiple-items_11.html

Regards,
hank


Quoting "Balachandar.P" <[hidden email]>:

>
>
> Hi,
>
>  I created list of check boxes and created one check box at header level.
> when i clicked header level check box its all check boxes selected and try
> to deselect its all unselected. but what my question is
>
> how to do this --->
> 1)   if i selected all list of check boxes, header level check box should
> automatically selected
> 2)   if i selected header level check box, and its selected all after i
> deselect one of the list check box i need to deselect header level check
> box.
>
>
> give me any suggestion abt this
>
> -Bala
>
> --
> View this message in context:  
> http://orbeon-forms-ops-users.24843.n4.nabble.com/Select-Unselect-All-tp2236885p2236885.html
> Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.com.
>


--
Hank Ratzesberger
[hidden email]



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws