# 

In this tutorial we will show how to navigate between tabs dynamically from a tab application.

In this example we will use two applications, added in the tab application.  
In the first tab we will have a form and after inserting a record we
will be directed to the second tab containing a query application.

**1.** With the tabs application properly configured,
we must access the form and in the onAfterInsert event insert the
following code:

![](http://cdn1.netmake.com.br/img_kb/pt_br/navegar_dinamicamente_entre_abas/img1.png)

Where X is the number of the tab that we want to redirect. In the
example, I want the second tab to be displayed after inserting a record.

This way the code would look like this:

![](http://cdn1.netmake.com.br/img_kb/pt_br/navegar_dinamicamente_entre_abas/img2.png)

For more information on the application tab and other applications, visit our [online documentation](http://www.scriptcase.net/docs/en_us/v9/manual/06-applications/01-general-view/).

  

SmallBestOriginalRemove