Oracle APEX Focus on detail interactive grid from master interactive grid on click
- Get link
- X
- Other Apps
When you have two interactive grids using master-detail you can focus the page on the detail interactive grid when the user clicks on a cell in the master interactive grid.
This is useful when your master interactive grid has lots of rows that takes up most of the screen, when the user clicks on a row on the master IG the page will focus the page on the detail interactive grid.
I am using APEX Version 19.2.
My master IG has a details column which when the user clicks on it scrolls the page to the details IG.
I give this column a CSS class name of linkToApplicantDetails.
I added an Execute JavaScript code Dynamic Action which uses the class name linkToApplicantDetails as the JQuery Selector for a click;
The page will focus on the top of the detail IG so I added another line of JS to scroll the page an extra number of pixels. Play around with this size (130) for your page;
window.scrollBy(0, 130);
See. https://developer.mozilla.org/en-US/docs/Web/API/Window/scrollBy.
Now when the user clicks on a row on the master detail IG the page will scroll to the detail IG.
- Get link
- X
- Other Apps
Comments
Post a Comment