getting tab names (nested tab panels)

Hi there,

Another tabpanel question. In my solution, I have some nested tabspanels.

Is there a way to get the names of the actual tabs that I click on and keep adding that path to a global.

Say I have tab panel Main Menu → then submenu–> then submenu2.

I would like a global that records the paths of the nested tab names that I’ve clicked on.

thanks

I guess it was answered in this thread:
http://forum.servoy.com/viewtopic.php?t=5507

The getSelectedTabFormName method gathers the actual form name, but is there a way to get the element name of that tab?

Forms sometimes is named more cryptic (like main_data_table_rejects).
The element name would just be “rejects”. I would like to pull the element name. is that possible?

You can use

elements.myTab.getTabNameAt(int) //int is tabindex

You can also use this to get active tabindex

elements.myTab.tabIndex

maarten:
You can use

elements.myTab.getTabNameAt(int) //int is tabindex

You can also use this to get active tabindex

elements.myTab.tabIndex

This still gets the actual form name, but you know in each tab, you can actually give it an “element name”. (in the properties area, when you click on a specific tab, you have imagemeida,foreground,backgroun,tooltiptext,text, NAME)

is there a way to pull that NAME??, not the full form name.

thanks,
sammy

That’s what it actually does, Sammy.
What version are you running?

Maarten, I think this is only implemented as of the 3.0 Alpha’s.

currently, the getTabNameAt returns the formname, not the value of the Name property.

Paul

i’m using version 2.2 still. How stable is version 3.0? we’re close to moving our product to production, i’m not sure if i want to deploy an alpha version.