Going to a form and to a specific tabpanel on that form

How does one access/go to a specific tabpanel on a form. I have a form with 6 tabpanels on it all of which display related records and all those relationships allow for the creation of related records. Buttons on the controller will create a new record but I need to end up in the tabpanel where the new record is being/has been created.

TIA

In a method you set the tabIndex of the tabpanel. It’s 1 based so tab 1 is index 1, tab 2 is index 2, etc.

like:

elements.myTabPanel.tabIndex = 1

Hope this helps

Thank you very much. I was on the right track but not quite there.