Quantcast
Channel: DataTables 1.10 — DataTables forums
Viewing all articles
Browse latest Browse all 2364

Master Detail Tables

$
0
0

Hi

I am new to Datatables and trying to create two tables (i.e. Master and Detail). Detail table rows should be based on the ID in the Master table. I am following the tutorial https://datatables.net/blog/2016-03-25 and everything working fine while following the same from end to end. Please also note that I am not using DataTables but not DataEditor and hence, I skipped the DataEditor parts. I will be using the same approach down the road.

The issue is that my Master table is being populated on page load through PHP script without any issues. When I select any row in the Master table, I need to call a PHP script that runs a query to select all the records from Detail table based on the ID from Master table I passed and return the set of records.

Afterwards, I want to show all the returned records in the Detail table using AJAX.

Prompt support as well as a working example (if possible) would be highly appreciated.
Thanks in advance.


Viewing all articles
Browse latest Browse all 2364

Trending Articles