Jump to content
  • 0

Run code on row select event




Does anyone know how to capture the on row select event for a tabular report?

By default when the user clicks on any row of a tabular report it gets highlighted. I'd like to run some JScript code on this same event.

Such as...

onclick="deployDP('forms','Forms', '78f9d0002030113558e549a884a9,78f9d000d871f9a65f514288bd3a','?fType=[@field:ns_tbl_staff_form_types_form_type_required_fk]')"


Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Hello @BrianI

When someone "selects" a row in a tabular report it triggers "click" event. You can use this snippet and customize it to fit your use case:


if (document.clickEventHandler == undefined) {

const clickEventHandler = (e) => {

if (e.target.classList.contains('cbResultSetTableCell')) {

  // your click handling code goes here


document.querySelector('body').addEventListener('click', clickEventHandler, true)
document.clickEventHandler = 'Enabled'


Link to comment
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.

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.

  • Create New...