Change the selected tab

Hello, I want to know if are any form to change the selected tab panel in the frameowrk, in the related tabs of the form.

Actually this is the tabs, and i want to change to one or other programaticaly, if this posible? I need this because I enable or disable some tabs depending of some parameters.

one solution could be

globals.svy_nav_switchTabProgram(_event,_programName)

where _programName is the name of the program bound to the tab you want to select

Another question is : is it possible to programmatically enabling/disabling some of these tabs?

Both items are possible. But we have to invest some time to look what the exact code should be.

I’m currently looking into the framework code, I’ll find it sooner or later…
;)

In the new version we will have two methods that will help you:

New - globals.svy_nav_getVisibleFormNames() : Get the formnames that are showing at the moment in the order of the template
New - globals.svy_nav_getVisiblePanelNames() : Get the formnames of the tabpanels where the forms are set on, in the order of the template.

globals.svy_nav_switchTabProgram(_event,_programName)

Is working again in the next version.

It will determine on which panel the tab is, and then switch to it.

Okey, thanks for all sanneke!

That sounds good!
i haven’t already found how to enable or disable those tabs… or just how to block the current panel…
maybe i could go into the “go to edit mode” code…

Now you have the panelFormname and the tab name ‘tab’, you can just use servoy function to enable and disable tabs.

I’m back with a question…
I am using 6.0.6 with the old framework. Say that I have a situation like the one attached down here:
[attachment=0]program_example.jpg[/attachment]
Is there a way in which I can make one of these panel not visible (or removing it)?
My purpose is to show/hide the third tab accordingly to the value of a specific variable.
Thanks in advance.