Oracle APEX 23.1.0
I have tried numerous approaches to simply highlight the clicked row in an Interactive Report Region. Despite being certain that my JQuery selector is correct, no matter what I do, I can not seem to get APEX to react to the Clicked event.
I've created this CSS Class:
.row-selected {
background-color: lightgray;
}
I've assigned static ID MY_UPLOADED_FILES_IRR to the Interactive Report Region.
I've added a Dynamic Action based on Click of this JQuery selector:
#MY_UPLOADED_FILES_IRR table tbody tr
The DA True action is Execute JavaScript Code with the following snippet:
// remove previous selected row highlight
$("#staticID table tbody tr").removeClass("row-selected");
// add highlight to selected row
$(this.triggeringElement).addClass("row-selected");
From the console, I can confirm that the selector is good:
$('#MY_UPLOADED_FILES_IRR table tbody tr').length
10
Nonetheless, the clicked event is never triggered for this selector (I can stick an alert or console.log call in the JavaScript and it never fires).