How do you get the raw table data for export?

How do you get the raw table data for export?

formidoformido Posts: 3Questions: 1Answers: 0
edited November 2015 in Free community support

In pre-1.10, I had an ad hoc CSV export system that used:

oTable._('tr', {filter:'applied'});

...to get all the raw rows after filtering. I'm trying to switch to 1.1x. I'm using the "DataTables" form of the constructor so I can use some of the Buttons extension's features. However, now the previous line of code doesn't work, and I can't figure out from the Buttons docs how to get the raw data (before render functions have been applied).

Answers

  • formidoformido Posts: 3Questions: 1Answers: 0
    edited November 2015

    Oops, I am getting the raw data using table.buttons.exportData(). Forget this ever happened.

  • formidoformido Posts: 3Questions: 1Answers: 0

    I spoke too soon. I was confused due to the default of stripHtml being true messing with my data. I can only see how to get rendered data with exportData(). How do you get the original data, current filter applied?

This discussion has been closed.