Skip to Content
avatar image
Former Member

Context menu as fragment

I want to achieve exactly the same as in the following example: https://sapui5.netweaver.ondemand.com/sdk/explored.html#/sample/sap.ui.table.sample.Menus/preview

Where the right click on the Product Id cell gives us a context menu with a button:

The only problem is that the context menu is created dynamically in Javascript in function

onProductIdCellContextMenu.

I would like to achieve the same functionality but rather than creating the context menus programatically I want to include the context menu in a fragment and load it from there. But the problem is - how do I pass the clicked row id to the menu button's event handler without using a global variable or a JSON model when the context menu is created declaratively?

grid.png (44.5 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Mar 23, 2017 at 01:19 PM
    Add comment
    10|10000 characters needed characters exceeded