• Resolved bortaglass

    (@bortaglass)


    Hi!
    I was wondering if it′s possible to use the search field to filter information from multiple tables on the same page? It would be really nice to display the search field only on the top table but filter all tables at the same time.

    Thanks for creating this really awesome and useful plugin!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    thanks for your question, and sorry for the trouble.

    I see what you mean, but unfortunately, I’m not aware of an existing solution to this ??
    Your best chance probably is to develop a custom solution that use the API functions of the DataTables JS library to trigger a search in all tables on a page.

    Regards,
    Tobias

    Thread Starter bortaglass

    (@bortaglass)

    Thanks for your answer, Tobias.
    Too bad. It would have been really helpful in my case. ??

    Appareantly it seems to be a much easier thing to do with Datatables 1.10 than earlier though but since I’m no expert in Java or PHP, it would still be a bit of a hassle to get it working.

    Perhaps someone else have more knowledge and can get it to work?

    https://datatables.net/manual/api#Multiple-tables

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    yes, the latest versions of DataTables contain some nice API functions for this, which can be used in custom JavaScript code.
    You have to e.g. add such JS code below the table Shortcodes (if you turn off the DataTables integration in TablePress).

    Regards,
    Tobias

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Search multiple tables’ is closed to new replies.