Hi, I've just tried to use the excel export package and I get this error: Fatal error: Uncaught Error: Call to a member function meta() on array in C:\wamp64\www\accounting\reports\koolreport\excel\TableBuilder.php on line 442
Here is the expression:
DataTables::create(array(
"dataSource"=>$turnover,
"name"=>"turnover_table",
"language"=>"bg",
"fastRender" => true,
"options"=>array(
"searching"=>true,
"select"=>true,
//prefilter table with data from search field
"stateSave"=>true,
"stateLoadParams"=>"function (settings, data) {
data.search.search = '$search_param';
}",
),
"showFooter"=>"bottom",
"columns"=>array(
"AccDesc"=>array(
"label"=>"Описание",
"footerText"=>"<b>Общо</b>"
),
"Acc"=>array(
"label"=>"Сметка",
"footerText"=>"<b>---</b>"
),
"AmSumSBDebit"=>array(
"label"=>"Начално Салдо Дт",
"footer"=>"sum",
"footerText"=>"<b>@value</b>",
"type"=>"float"
),
"AmSumSBCredit"=>array(
"label"=>"Начално Салдо Кт",
"footer"=>"sum",
"footerText"=>"<b>@value</b>",
"type"=>"float"
),
"AmSumDebit"=>array(
"label"=>"Обороти Дт",
"footer"=>"sum",
"footerText"=>"<b>@value</b>",
"type"=>"float"
),
"AmSumCredit"=>array(
"label"=>"Обороти Кт",
"footer"=>"sum",
"footerText"=>"<b>@value</b>",
"type"=>"float"
),
"AmSumEBDebit"=>array(
"label"=>"Крайно Салдо Дт",
"footer"=>"sum",
"footerText"=>"<b>@value</b>",
"type"=>"float"
),
"AmSumEBCredit"=>array(
"label"=>"Крайно Салдо Кт",
"footer"=>"sum",
"footerText"=>"<b>@value</b>",
"type"=>"float"
)
),
"cssClass"=>array(
"table"=>"table table-bordered table-striped"
)
));