Use actions to activate a different tab

  • 1
  • Question
  • Updated 4 months ago
  • Answered
  • (Edited)
Is it possible to have a tab active and use Actions from button to change which tab is in focus?

Now press "Add New Search".  Using actions I then see this with out pressing t "Searches"

What actions would make this happen?
Photo of Bill Fox

Bill Fox

  • 6,898 Points 5k badge 2x thumb

Posted 4 months ago

  • 1
Photo of Bill McCullough

Bill McCullough, Champion

  • 9,888 Points 5k badge 2x thumb

Do searches have to be in a different tab?  You can use the action 'Toggle Component' to show and hide any element on the page.  I think this is available since Brooklyn 10.0.2.

You can add the Search component on the tab and add a page triggered action sequence to hide the Search component.  Then add the Toggle Component action to your 'Add New Search' button.  Note that the page triggered action is only available in Millau (11.0).


Photo of Skuidward Tentacles (Raymond)

Skuidward Tentacles (Raymond), Champion

  • 16,576 Points 10k badge 2x thumb
I have built my own “tab sets” using conditionally rendered wrapper components in a responsive grid. Render the wrappers using buttons.
Photo of Bill Fox

Bill Fox

  • 6,898 Points 5k badge 2x thumb
Thanks guys.  I ended up moving the "add searches" under the "Searches" tab which actually makes more sense
Photo of Mike Dwyer

Mike Dwyer

  • 1,214 Points 1k badge 2x thumb
A non-elegant approach I'm using on a page renders a tab when a certain UI-only model has no data rows. In one action sequence, a dummy row is created in that model, hiding the affected tab. This effectively directs the user to an alternate tab, where a Whenever Shown action sequence removes the dummy row in the UIO model. (This re-enables the hidden tab, but the user is where we want them. It's clunky, but it works.)