UIAction change currently active tab


#1

I’ve a UIViewTabPanel with several tabs, on one tab ‘Overview’ I tried to add a button which when clicked should redirect the user to another tab Alerts.

This is the behavior I’ve attached to the button:

            "behavior": [
                {
                    "query": "TagDetailsSeeAllAlertsButton",
                    "trigger": "click",
                    "action": {
                        "type": "UIActionSetActiveTab",
                        "tabPanelId": "controlValves.TagSpecificTabPanel",
                        "activeTab": "Alerts"
                    }
                }
            ]

The problem is when the button is clicked nothing happens! what’s the proper way to configure this action?


#2

I had wrong tab ID, this works properly

            "behavior": [
                {
                    "query": "TagDetailsSeeAllAlertsButton",
                    "trigger": "click",
                    "action": {
                        "type": "UIActionSetActiveTab",
                        "tabPanelId": "TagSpecificTabPanel",
                        "activeTab": "Alerts",
                        "followUpActions": [
                            {
                                "action": {
                                    "type": "UIActionScrollTop"
                                }
                            }
                        ]
                    }
                }
            ]