I have a button in a SapToolbarControl which is of type ToolBarButtonType.ButtonAndMenu
. I found out how to get the ID of the button and I have tried the three methods selectContextButton()
, selectButton()
and pressContextButton()
:
selectContextButton()
always throws a UnsupportedMethodException
with the message
The method SapToolbarControl::SelectContextButton is not supported for SAP.
The other two methods do not throw an exception but do nothing.
How can I make use of toolbar control buttons of type Menu
and ButtonAndMenu
?
I'm using Silk4J 16.0 Hotfix 2 in Eclipse Luna 4.4.2 with SAPGui 7.30.