Hi all,
I wanted to add a select all/unselect all checkbox in my classic report and I managed to do so by adding this to the heading attribute
<input type="Checkbox" onclick="$f_CheckFirstColumn(this)">
Where CheckFirstColumn is already implemented in APEX.
The problem here is that I also want it to check automatically if I checked all say 10 checkboxes in the report by hand , and if I deselected them all to automatically uncheck.
I know the logic behind would be something like this:
for loop over the checkboxes
if checkbox [i] is checked then add 1 to totalcount
if totalcount = count of checkboxes (that is all checkboxes are checked)
then make the main checkbox checked
if totalcount=0 (non of the checkboxes are checked)
then make the main checkbox unchecked
Can you help me implement this using Javascript ?