Switch to a new tab programatically

I'm using D2 with tab layout
Node-Red v4.0.9
D2 v1.21.0
I want to click on a table row and switch to a new tab passing the row info to a control on that tab

I used to be able to use link out and link in nodes to accomplish this on Dashboard 1 but while the data is passed to the tab on D2, I have to click on the tab to see it. Is this different behaviour on D2 or due to tab layout. Can I switch to the tab using code?

have you looked at the docs?

You should also use JS in a template to open a new tab

Can you switch to a tab (rather than a page) using the ui-control node?

if you read the doc it says page, that's why i mentioned js to open a new tab etc.

It does seem to be a bit of a deficiency in the control node that it has not been extended to cope with tabbed layout.

Hi
I've read the ui-control examples This is what I have
passing to ui-control just to prove I can manipulate the dashboard

msg.payload = {
    page:'Kiniska',
    groups: {
        show:['Kiniska:Testing']
    }
}

So I can show/hide the tab but I can't figure out how to switch to that tab
The example shows how to navigate to a page but not a group/tab

Just saw Colin' post so maybe tab navigation is not supported

Reading further down the page it looks like you can open external links with target

Have not tested but this may work for a dashboard url.

I'll try a few of those suggestions and see if the user experience is acceptable

Thanks for the help

Send a msg.payload to the ui-control with the tab/page name (page and tab are the same in D2, use them interchangeably)

msg.payload = '<Page Name>'

// Object
msg.payload = {
    page: '<Page Name>',
}```

Hint: When loading content to a widget on a different tab.page, you may need to add a delay so the data gets there after the new tab/page loads. I've run into this almost every time, especially when the group or tab I'm sending data to was hidden and then unhidden just before loading (think dialog groups)