The Automatically Opening Attribute Table

601
5
01-23-2026 08:06 AM
JeffreyThompson2
MVP Frequent Contributor
2 5 601

Sometimes all the pieces of the puzzle are just sitting there, but you can't see how they go together. And then you do. And you can't image how you didn't see it earlier.

Here's our problem. Clicking the Add To Table Button in the Map Layers and other Widgets won't automatically open that Table Widget we have in a Sidebar. Here's our puzzle pieces:

Do you see it? Here's the build.

  1. Starting with a Blank Fullscreen Template, we add a Sidebar Widget and set it to Full Size.
  2. In the Always Open Side, we put a Map and a Map Layers Widget.
  3. In the Collapsible Side, we put a Widget Controller.
  4. In the Widget Controller, we put a Table Widget.JeffreyThompson2_0-1769183115945.png
  5. In the Widget Controller Settings, set the Widget Panel Arrangement to Fixed, the Width to 100% and use the Center-Bottom Square.JeffreyThompson2_1-1769183297216.png
  6. In the Table Widget, chose Select Layers and then don't. ...Don't select any layers...unless you really want to.
  7. Set your Sidebar Widget with Resizable off, Default State Collapsed and Collapse Button off to make it unopenable.

The result:

JeffreyThompson2_2-1769183550832.png

Clicking Add To Table automatically triggers the hidden Widget Controller and opens the Table Widget. Users can close the Table with the X button or use the Arrows to minimize it, which isn't an option in ArcGIS Pro for some reason. It won't automatically un-minimize or prevent you from adding the same table twice, but all-in-all, I think it's a pretty slick presentation, maybe better than the Webmap Viewer or ArcGIS Pro.

5 Comments
DougBrowning
MVP Esteemed Contributor

Have you found a way to just have it open the table widget if its already in the list of tables?  Add to table keeps adding it as a new one so then we end up with several.  Also when bringing in the table from Add Table it is defaulting to alphabetical field list order and not the order of the service (which we spent a lot of time on getting the way we want).

 

Thanks

JeffreyThompson2
MVP Frequent Contributor

@DougBrowning, the Add To Table Action is designed for end-users to make their own arbitrary tables, so it will always create a new table and add it to the Table Widget. If you already have a table configured in the Builder, the Add To Table Button in the various menus isn't really what you want. You can build your own open-a-table Button Widget by putting the Table in a Widget Controller or a Sidebar and using the Open Widget or Open Sidebar Actions. 

DougBrowning
MVP Esteemed Contributor

We have dozens of tables though not just one.  So we see no way for it to go to the one the user wants that is already in the table widget.  It just adds it a second time on us.  

This worked fine in WAB do trying to match that.

thanks

JeffFranzen1
Occasional Contributor

Nice work Jeffrey and also someone shared your recent Texas presentation with the dual Near Me widgets for Schools and Districts. Hope you share that here someday. 

JeffreyThompson2
MVP Frequent Contributor

@JeffFranzen1 The PowerPoint and a demo app have been added to the Zone Lookup post that talk was based on.

Contributors
About the Author
A frequently confused rock-hound that writes ugly, but usually functional code.