Set default tab in web viewer
Is it possible to set a default tab to be open after closing another tab in the same panel?
I have a panel with three different tabs, two of them are visible by default (layer list and legend), and the third contain a results list is not visible by default. Whenever the user clicks features in the map, the results list opens. When users close this list, I want the layer list to be the default tab open.
I could solve this by using the "ui.activate" command upon a close event on the results list, but I can’t find such an event...?
Any ideas?
Best Regards,
Kristine
-
Cam Barnard, adding a close event to Panel "x" buttons that could be bound to in Web would be so helpful for use cases like this or closing forms. Any chance the team has looked into something like that?
3 -
Can a default tab toggle be added to the properties of Tab component please? I'm setting the default by adding it as the first tab, but this is inflexible.
2 -
YES! YES! YES!
I have the EXACT same issue/gripe“When users close this list, I want the layer list to be the default tab open.”
2 -
I'm trying to do the exact same thing? Is there a command we could use as a workaround?
0 -
I just figured out how to do it when my workflow finishes. The last step before exiting the workflow is to add a run command step with the parameters below - command name ui.activate. The command parameter is the layout id of my ‘layers’ tab that I want it to activate when my workflow window closes.

0 -
thanks for sharing that Belinda… I guess we hope the ID does not change : )
0 -
Thank you, Belinda. This helped me to default back to a “Home” tab on the left panel after a specific workflow ended.
Also, what does happen with these IDs after upgrades and such? I've had to use these quite often for “Inject CSS” in other areas.
0 -
What about when it's not a workflow, but a search from the search box…? It still seems like there should be a way to capture the closing of a tab and have it activate the main tab.
0 -
I've created an Ideas post for capturing the close event here. Please vote!
0 -
I added event listeners under Event Service to go back to the Home tab when closing other tabs on the side panel:

Here is the definition of Legend (Default) Panel Closed:

For Results Panel Closed Event Listener, I have a custom Action commands chain to go back to Home tab and to clear results and highlights focus.
1 -
Michelle Wang thank you! This is super helpful.
0 -
Michelle Wang, I too, am grateful for your post. I totally forgot about the event service options. this will solve quite a few needs.
1 -
Happy to know it's helpful :-)
0 -
Thanks from me too, this is exactly what I needed!
0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
14 kommentarer