Navigate between tab dynamically

Navigate between tab dynamically

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:

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:


For more information on the application tab and other applications, visit our online documentation.

    • Related Articles

    • How to switch between themes dynamically through the Menu app

      In Scriptcase, it's possible to dynamically switch between themes by activating a Menu option, to enable that option, simply follow the steps below: Note The chosen project must have more than one theme selected, otherwise it will not be possible to ...
    • Using a TAB application with several applications and with a single parameter

      This example will show how you can pass parameters from a Grid to another TAB application so that it can be used to execute SQL queries in different applications contained in the TAB.    1. Two applications of the Grid type must be created, both must ...
    • Manipulate a button display dynamically

      The most interesting feature in Scriptcase, is the manipulation of the display of buttons in applications, with the macro sc_btn_display ("nomebotao", "on / off"): To see all the macro documentation click here. We can use this macro to validate ...
    • Dynamically change the theme of a project with the sc_set_theme macro

      Scriptcase provides macros, functions created by the developers of Scriptcase, which will assist in customizing applications as well as simplifying code editing at events. In this article, we will see how to use the sc_set_theme macro in practice, to ...
    • How to connect to MySQL 8.0

      The MySQL 8 uses a different authentication from your predecessors, that until the moment it's not accepted by PHP 7, that generates the error "The server requested authentication method unknown to the client" at connecting to Scriptcase. First, you ...