https://apex.oracle.com/pls/apex/f?p=134181:15
- The IR link column (class=apex-edit-pencil) opens a modal dialog to drill down into the row, fetch associated details, etc.
- Page global JS defines a variable g_tr
- DA defined on Click, jQuery selector .apex-edit-pencil, one true action with the following code
if (g_tr) {
$(g_tr).find("td").css("background-color","inherit");
}
g_tr = $(this.triggeringElement).closest("tr");
$(g_tr).find("td").css("background-color","#bfbfbf");
The idea, of course, is to highlight the clicked on row to provide a visual indication of the current row. Works fine but I have a couple of questions
- Is this the best technique to accomplish this sort of thing? My definition of best is a) using least amount of code b) using as much declarative out-of-the-box APEX features
- How can the row highlight persist when the IR is refreshed?
Any ideas appreciated. Thanks