BrianI Posted June 13 Report Share Posted June 13 Hi 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]')" Thanks Quote Link to comment Share on other sites More sharing options...
0 Volomeister Posted June 14 Report Share Posted June 14 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: <script> 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' } </script> Quote Link to comment Share on other sites More sharing options...
Question
BrianI
Hi
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]')"
Thanks
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
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.