Action: SHOW_TAB

TABBED Screens are a group of screen that are part of a tab_group. Tapping upon a tab, shows a screen associated to that tab. By default, the screen with menuOrder=”0” is the first tab and the screen associated is shown. If you want to programmatically show another tab, this action could be used.

Attributes Value Mandatory
action_name SHOW_TAB Yes
event_list comma separated list of events, eg: TAP Yes
target screen name to be shown. The screen must belong to the current tab_group_name Yes

Example

In the example below, there are three screen part of the tab_group_name=taggroup1. On the first screen “screen_1” there is a PUSHBUTTON “gototab3”. Upon tapping it, the 3rd tab is shown.

Screen 1

<screens>
    <screen name="screen_1" menuOrder="0" menuName="Screen 1" icon="notepad.png"
        tab_group_name="tabgroup1">

        <control type="TEXT" x="0" y="40" width="100" height="6"
                default_value="This is first screen"
                appearance_name="black" data_type="VARCHAR"/>
        <control name="gototab3" type="PUSHBUTTON" x="30" y="60" width="35"
                height="7"
                appearance_name="black" data_type="STRING"
                default_value="Jump to Tab 3"
                size="255">
        <action event_list="TAP" action_name="SHOW_TAB" target="screen_3"/>
    </control>
    </screen>
</screens>

Screen 2

<screens>
    <screen name="screen_2" menuOrder="1" menuName="Screen 2" icon="notepad2.png"
        tab_group_name="tabgroup1">
        <control type="TEXT" x="0" y="40" width="100" height="6"
                default_value="This is second screen"
                appearance_name="black" data_type="VARCHAR"/>
    </screen>
</screens>

Screen 3

<screens>
    <screen name="screen_3" menuOrder="2" menuName="Screen 3" icon="notepad3.png"
        tab_group_name="tabgroup1">
        <control type="TEXT" x="0" y="40" width="100" height="6"
                default_value="This is third screen"
                appearance_name="black" data_type="VARCHAR"/>
    </screen>
</screens>