Summary
On a self-hosted instance, they want to build a summary tab that combines filtered data from two tables located on other tabs of a tabbed container, but table1.getDisplayedData() returns nothing when the source table sits on a hidden/inactive tab.
AI Response
This is expected/known behavior: table APIs such as getDisplayedData() only return values while the table is actually rendered and visible on the page, so they come back empty or undefined when the table lives on a hidden tab or an inactive tabbed-container view. Retool staff have confirmed this is a long-standing limitation and there is no way to read displayed data from an off-screen table directly. The supported approach is to capture the table's data into a variable, transformer, or query while the table is visible, then reference that stored value on the summary tab. Alternatively, apply the same filtering logic in a transformer/JSON SQL query against the underlying query data so the summary never depends on a rendered table component.
Sources
getDisplayedData only working when table on screen
Staff confirm getDisplayedData and other table APIs only work while the table is visible (not hidden or on another tab) and recommend storing the data in a variable/query/transformer while the table is on-screen.
table.clearSelection() doesn't work in tabbed container if table is on a non-visible tab
Corroborates the same root cause, showing that table methods fail when the table is on a non-visible tab of a tabbed container.
The Community Team is testing out a new automation. Let us know if it's helpful (or not) by leaving a
,
, or
. Or by marking this post as the "Solution"! Let us know if you have any feedback here. ![]()