Is it possible to identify the current tabpanel from a method running in a custom controller? The getName() function returns the name of the controller itself.
Developer Move Sampe:
//Set / Get the selectedTabIndex
var current = tabpanel.tabIndex;
tabpanel.tabIndex = current+1;
Servoy Developer Volume ll Reference Guide on page 222:
Property tabIndex
Description Gets or sets the selected tab (array) index for the specified tabpanel.
Example //gets the selected tab index of the tabpanel
var current = forms.orders.elements.infoTab.tabIndex;
//sets (goes to) the selected tabIndex of the tabpanel
forms.orders.elements.infoTab.tabIndex = current + 1;
The documentation ROCKS!
Bob
Fabulous!! I looked under “get” in the index. Didn’t find it there, didn’t think of looking under “tabIndex”.
Much thanks for the quick response. This will solve a lot of problems.
General appreciation to all who have been posting responses. As yet it’s rather rare for me to know the answers to others’ questions, there’s so much to learn. Eventually I’ll assuage my guilt about being always on the receiving end.