cancel
Showing results for 
Search instead for 
Did you mean: 

onSelect is not triggered for a ContextualPanel and ViewSwitch.....?

Former Member
0 Kudos

Dear gurus...

I have made a simple testprogram with a ContextualPanel and 2 ViewSwitches.....

For every ViewSwitch I have created a onSelect event that call my method.

I test my program and it looks good with 2 "menu-buttons" on the screen....

I have put a break-point in the onSelect method, but no event is triggered ?

Please advice how to troubleshoot.......

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Erik,

i assume that you bind a context node to ContextualPanel and the elements in the node represents ViewSwitch.

Former Member
0 Kudos

Yes, I do binding for itemSource and have studied this example:

[Wiki|http://wiki.sdn.sap.com/wiki/display/WDABAP/UsageofViewSwitchinContextualPanel+UIelement]

Please advice

Former Member
0 Kudos

Hallo Erik,

i have done a test, it is working as it should be.

At Runtime you do not see that the view switch is happening as because there is no lead selection is changed. You get the on_select event on which you get the event parameter INDEX of the selected element in the context node.

You can do a leadselection of the node using this Index to visually switch to the selected viewSwitch.

Answers (0)