2

I couldn't find any information on the (very huge) documentation of datatables concerning the question of multiple ajax sources.

So I have a first source:

"ajax": {
   "url": "components/table_accountingin.php?type=incomes",
   "dataSrc": 'patients'
},

And I'd like to have a second url getting the data from another source. Is that possible ? The function generating the json data is quite complex so I'd like to avoid putting all calls in the same php function ! I tried to put sources between brackets etc. but that obviously didn't work out as expected !

Thank you in advance :)

9
  • Are you asking how to join two data sources on the same table? Commented May 17, 2016 at 16:57
  • Yes, two ajax sources ! Commented May 17, 2016 at 16:58
  • Does it matter if the sources have different number of rows or columns, and do you want them joined side by side or union stacked on top of each other? Commented May 17, 2016 at 17:01
  • No it should be easy, same columns and number of them ! Commented May 17, 2016 at 17:02
  • I can even give them the same names for the column attribute ! Commented May 17, 2016 at 17:03

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.