Change data / query when exporting datatable

Change data / query when exporting datatable

albert_fredalbert_fred Posts: 5Questions: 2Answers: 0

Hey, i have a question. I am displaying a datatable that in the view it is good to have it group by institution, but each institution can have more than one contact. It is possible that when exporting to csv, i can change the query to the DB and export also all the institution contacts? In the csv i should have one row per contact (so some institutions will be repeated) Thanks!

Answers

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

    Possibly, though I've not tried it. This thread here may help - it's showing how the exportOptions can be customised to call an Ajax end-point for the data. You could try that approach and see if it works,

    Colin

Sign In or Register to comment.