on 10-21-2015 8:30 AM
Hi
My top navigation item has three subitems
I tried to remove a sub item from a this top navigation item .
using
topNavigation.removeSubItem(index | id | ref to subitem)
this method, however, works correctly only if I try
remove the first subitem.
Any comment.?
Is it a bug.?
regards
Yuval
I think it is a bug. You can use destroySubItems() as workaround 😞
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
I found that removing subitems
should be done as follows:
var sCurrentSelectedItem = oShell.getSelectedWorkItem(); // returns the name
var mainWorkItem = sap.ui.getCore().byId('myTopItem');
var oCurrentSelectedItem =ap.ui.getCore().byId(sCurrentSelectedItem );
mainWorkItem.removeSubItem(oCurrentSelectedItem );
I hope it helps others
yuval
User | Count |
---|---|
89 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.