I have an Shiny app with a bunch of datatables using the DT package in it. There is one main datatable called records.
What I would like to happen:
When someone enters a value into the DT search bar of the records datatable, i would like automatically pass that search parameter value to all the other datatables search parameter. This would update anytime someone edits the search parameter in the records table.
I have looked into creating a global search box, but i am saving that as a last resort. The built-in datatable/DT package searching is much more efficient and natural to use, i would like to leverage it.
Here is an example of two datatables with linked search.
The current search box value is available as
input$dt1_state$search$search
if your datatable ID isdt1
. You can then useDT::updateSearch
to set the search box for the next datatable.