Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

IR Row Highlight

partlycloudyMay 20 2018 — edited May 21 2018

https://apex.oracle.com/pls/apex/f?p=134181:15

  1. The IR link column (class=apex-edit-pencil) opens a modal dialog to drill down into the row, fetch associated details, etc.
  2. Page global JS defines a variable g_tr
  3. 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

  1. 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
  2. How can the row highlight persist when the IR is refreshed?

Any ideas appreciated. Thanks

This post has been answered by Pierre Yotti on May 20 2018
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 17 2018
Added on May 20 2018
2 comments
1,107 views