Join Link Table and multiple tables.

Join Link Table and multiple tables.

darlindarlin Posts: 9Questions: 1Answers: 0
edited August 2014 in DataTables

Hi,
I have datatable which is load dynamically from various tables(the same columns).
It works base on ajax.url()

js table.ajax.url("php/Table.php?db="+db_url).load();

but now I would like to do a little bit more complicated scenario.

I would like to to add a join link table functionality base on
table.ajax.url("php/joinLinkTable.php?db="+db_url).load();

and columns variable:

"columns": [             
                {
                  "data": db_url+".device"
                },

data in this scenario are received correct, but I can't reload datatable structure - to load a new db_url variable.
is there any way to reload datatable ?

Replies

  • allanallan Posts: 55,882Questions: 1Answers: 8,835 Site admin

    If you want to show different columns, and otherwise use different initialisation options, you would need to destroy the table (destroy()) and then create a new DataTable.

    Allan

This discussion has been closed.