Best way to filter data in multiple tables using one source
Best way to filter data in multiple tables using one source
Link to test case:
https://live.datatables.net/cepeboba/2/edit
Debugger code (debug.datatables.net):
Error messages shown:
Description of problem:
I'm using JavaScript way to store data. I thought it would be great to create a single source and link it to multiple tables in which you can show different angles of the same data. What are the ways to "filter" the data in tables to make sure only specific data is shown. For example limiting output based on 2-3 different columns in the 2nd table, while first table retains everything?
Answers
column().search()
could be used to search for data in a specific column. If you need something more complex (i.e. conditionals over multiple columns) then a custom search function could be used.Allan