Search code examples
oracle-databaseoracle-apexoracle-apex-5

How to create context menus which appear on right clicking in oracle apex report?


I need to display a context menu when a user right clicks on a report and the user can perform an action on the rows selected. How to achieve this?

I can see there is already an action button on top of an interactive report. Can we customize that?


Solution

  • There's no built in way to do this. I see a few options:

    1. You could hack together your own actions. You would add a Dynamic Event on mousedown on your report, then some Javascript to handle the action.
    2. If it doesn't have to be a right click option, you can add a custom menu to a report. Here's one way of doing it. http://hardlikesoftware.com/weblog/2015/07/13/apex-5-0-custom-menus/
    3. Also, if using the Interactive Grid is an option, that menu can also be customized. See: http://hardlikesoftware.com/weblog/2017/01/24/how-to-hack-apex-interactive-grid-part-2/