Export all data that is not mapped in data table from json source.

Export all data that is not mapped in data table from json source.

mishaguptamishagupta Posts: 1Questions: 1Answers: 0

Hello,

My datatable structure is :-

```
$('#LedgerList').DataTable({
dom: 'Bfrtip',
buttons: [
{
extend: 'excelHtml5',
text : 'Export to Excel',
filename: function(){
var d = new Date();
var n = d.getTime();
return 'LedgerReport_' + n;
}
}],
"aaData": jsonobject,
"aoColumns": [
{"mData": "wallet_txn_date"},
{ "mData": "op_ledger_name" },
{ "mData": "service_name" },
{ "mData": "wallet_txn_id" },
{ "mData": "debit" },
{ "mData": "credit" },
{ "mData": "remarks" },
{ "mData": "ref_txn_id" }],
});

In jsonobject there are 10 columns but I have mapped only 8 column in datatable. But in export I want to export all the 10 columns with data. Is it possible anyhow?

This discussion has been closed.