Navigating to a specific tab

There are times when I want a method to click on a tab for the user, to take the same action as if the user had does the clicking.

forms.crMain.controller.show();
forms.crMain.elements.tabs_70.setTabEnabled(4,true);

Works if the current form is not crMain. Now I’m in a situation where the current form already is crMain and I want the method to shift the user from tab1 to tab4. The above code no longer works. application.updateUI() does not refresh the screen to the new active tab.

I’m sure there’s a solution but I’m just not seeing it.

Hi Morley,

If you want to go to an actual tab you should be using the tabindex function as in:

forms.crMain.elements.infoTab.tabIndex = 4;

Cheers
Harry

Harry Catharell:
If you want to go to an actual tab you should be using the tabindex function as in:

forms.crMain.elements.infoTab.tabIndex = 4;

Thanks Harry for getting me out of my mental box.