cancel
Showing results for 
Search instead for 
Did you mean: 

select all/deselect all checkbox

Former Member
0 Kudos

Hi Friends,

In a table of check boxes, here is one column of checkboxes.

How to put one checkbox as checkbox to select/deselect all check boxes?

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

I can do it using programming, by putting extra checkbox. If user clciks on that checkbox, all the checkboxes can be set true/false in the context.

in this case, How to identify the current displayed record on the table in the screen.

for example, if table is set to display 5 rows, so how to get information that currently which numbers of rows (like row 6 to 10) is displayed?

Nav

Former Member
0 Kudos

Simply create a value attribute, say firstVisibleRow of datatype "int" under the root context and bind it to the property "firstVisibleRow" of the table.

Then, you may get the current set of visible rows by the code

wdContext.currentContextElement.getfirstVisibleRow()

+ <visibleRowCount on the table> {in your case its 5}.

Bala

Former Member
0 Kudos

Hi Bala, Thanks for the response.

this is what I did, Thanks!

but is there any other way too, just like as we do in JSP in the way of javascript

Former Member
0 Kudos

That was the simplest and effective way of doing it..You may do the same by explicitly catching the UI element in the wdDoModifyView, but, it is NOT advisable to do that unless there is no other way out.

Bala