In Oracle APEX, Interactive Reports provide built-in flexibility — including the convenient ability to place buttons right next to the search bar. However, Classic Reports don’t offer that option out of the box.
While working with a project that used the Standard template, I wanted to achieve the same clean and functional layout in a Classic Report. With a bit of creative use of jQuery and APEX region structure, I successfully replicated the Interactive Report’s button placement, giving the Classic Report a modern and consistent look.
Paste the below code on Execute on page load section
$(document).ready(function () {
if ($('#Btn_Open').length) {
$('#EMP .t-Region-headerItems--title').append($('#Btn_Open'));
$('#EMP .t-Region-headerItems--title').append($('#P8_DEPT_CONTAINER'));
}
});
P8_DEPT_CONTAINER - Static ID of popup lov
P8_DEPT_CONTAINER
is not a user-defined ID — it was copied from the browser console. This ID represents the container div that wraps both the Popup LOV field and its associated button. When we use the Popup LOV item’s static ID directly, only the input field moves, not the LOV button. Therefore, to move the entire Popup LOV (including the button), we use its automatically generated container ID instead.
Comments
Post a Comment