Hello,
i have an issue with using list on a classic report row.
i have the button in the classic report sql
'<button class="t-Button t-Button--icon t-Button--small t-Button--noLabel t-Button--iconOnly js-menuButton" '
|| 'type="button" id="row_action_btn_' || a.ASSIGNMENT_ID || '" '
--|| 'data-menu="row_actions_menu_region_menu" '
|| 'data-id="' || a.ASSIGNMENT_ID || '" '
|| 'data-employee-id="' || a.EMPLOYEE_ID || '" '
|| 'aria-haspopup="true" title="Actions">'
|| '<span class="t-Icon fa fa-ellipsis-v" aria-hidden="true"></span>'
|| '</button>' AS actions_button
at first i tried this solution https://apex.oracle.com/pls/apex/apex_pm/r/ut/menu-popup
i used items on the main page to hold the values per row selected using js, but i couldn't pass them on to the page on the list as it came to my understanding that i need to submit them to the server and i tried many ways to as apex.server.process(
but non worked,
i tried to hard code the menu as JS with DA
var $btn = $(this.triggeringElement);
var assignmentId = $btn.data("id");
var employeeId = $btn.data("employee-id");
if(!assignmentId || !employeeId){
console.error("Missing data attributes");
return;
}
var menuItems = [
{
text: "Change Manager",
icon: "fa fa-user-edit",
action: function(){
apex.navigation.redirect({
page: 142,
items: ["P142_ASSIGNMENT_ID","P142_EMPLOYEE_ID"],
values: [assignmentId, employeeId]
});
}
}
];
apex.menu.show(menuItems, $btn);
but now i row button doesn't show a list menu,
can you please help me with this
thanks