How to switch to next TAB in the Navigation based on a action/click

Hello All,
I have connected a BQ table using AGgrid and I want to switch to next tab when I click on check box on a row.
After switching to form tab it should fill information based on the selected row.