Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Select all/unselect all

Mesh234Oct 8 2014 — edited Oct 8 2014

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 ?

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 5 2014
Added on Oct 8 2014
1 comment
491 views