Jump to content
  • 0
NeoInJS

Automatic check the Select All check box in Tabular report

Question

I have a Tabular report in which Bulk Edit is enabled.  I would like to have a Javascript that will allow to automatically put a check in the Select All check box and automatically click the BULK edit link. 

Is this possible? 

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

Hello @NeoInJS,

 

Try adding the snippet of code below in the Footer of the "Configure Results Page Fields" section on your DataPage

<script>
var check_all = document.querySelector(`[action*="[@cbAppKey]"] [type=checkbox][id*="HCB"]`);
setTimeout(checker, 500);

function checker() {
 check_all.click();
}

</script>

 

This always checks "Select All" even after the records have been updated.

 

Hope this helps

-DN31337!

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...