Show filter row datatable on button click with modal

Show filter row datatable on button click with modal

CerditoCerdito Posts: 10Questions: 1Answers: 0
edited October 2020 in Free community support

Hi, i have two datatables. I want filter first datatable when i click on "Delitos" (button) on second datatable.

First Datatable

Second Datatable

When i click on "Delitos" i want to filter for example "Adrian Redondo" only, filtered with First Datatable. And dont show all records from first datatable, only First name and second name from that row only.

Thanks.

Replies

  • colincolin Posts: 15,240Questions: 1Answers: 2,599

    This example should help - here it's transferring rows between tables, but you can use that as a template for searching instead.

    Colin

  • CerditoCerdito Posts: 10Questions: 1Answers: 0
    edited October 2020

    @colin Thanks! And How can i use that for button click automatically searching "First Name" and "Second Name" only on selected row instead?

  • colincolin Posts: 15,240Questions: 1Answers: 2,599

    You would call search() with those values.

    Colin

  • CerditoCerdito Posts: 10Questions: 1Answers: 0

    @colin And how can i search those values from another datatable?

  • colincolin Posts: 15,240Questions: 1Answers: 2,599

    With the API - you can search any DataTable on that page. Could you link to a test case, please, showing what you've got so far. That will help to progress this. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.

    Colin

This discussion has been closed.