Visual Builder

Get Involved. Join the Conversation.

Topic

    Rajeev Singh
    Can we raise any event on click of menu items in...Answered
    Topic posted November 8, 2019 by Rajeev SinghRed Ribbon: 250+ Points, tagged Action Flows, Tip, UI 
    21 Views, 2 Comments
    Title:
    Can we raise any event on click of menu items in oj-menu-button
    Summary:
    Can we raise any event on click of menu items in oj-menu-button
    Content:

    Hi,

    I do not see any Event property for Menu Items under Menu button. I want to raise an Event on click of menu options. Is it not possible?

    For work around i have kept all my buttons under oj- menu button.

     

     

    Version:
    19.3.1
    Image:
    Code Snippet:

    Best Comment

    Shay Shmeltzer

    Both the menu and the menu-button have an ojaction event that will let you know which option was selected.

    Isn't that enough to implement the selection event?

    If not, can you explain what is the use case?

    https://www.oracle.com/webfolder/technetwork/jet/jsdocs/oj.ojMenu.html

    https://www.oracle.com/webfolder/technetwork/jet/jsdocs/oj.ojMenuButton.html

    https://www.oracle.com/webfolder/technetwork/jet/jetCookbook.html?component=menuButtons&demo=menuButton

     

    Comment

     

    • Shay Shmeltzer

      Both the menu and the menu-button have an ojaction event that will let you know which option was selected.

      Isn't that enough to implement the selection event?

      If not, can you explain what is the use case?

      https://www.oracle.com/webfolder/technetwork/jet/jsdocs/oj.ojMenu.html

      https://www.oracle.com/webfolder/technetwork/jet/jsdocs/oj.ojMenuButton.html

      https://www.oracle.com/webfolder/technetwork/jet/jetCookbook.html?component=menuButtons&demo=menuButton

       

    • Rajeev Singh

      Thanks Shay for the response.

      I figured it out. Raised an event on oj-menu to get the menu Id