2017-06-29, 06:45:55
Hi,
hmm, that problem was much easier to solve than I could have hope for...
DataTable has in internal option to acknoledge the fact that the table is re-initialized while that is not supported... It will just return the current table instead WITHOUT a warning message.
Here is what I did:
In the plugin/simpledir folder I added one line to the display_functions.php. In line 275 and below is the definition of DataTable, I added the last line with the "retrieve" Option.
Sorry, but I overlooked this option when I first read the article about the error code...
But that way, maybe someone else can use this solution as well.
Best regards,
Andreas.
hmm, that problem was much easier to solve than I could have hope for...
DataTable has in internal option to acknoledge the fact that the table is re-initialized while that is not supported... It will just return the current table instead WITHOUT a warning message.
Here is what I did:
In the plugin/simpledir folder I added one line to the display_functions.php. In line 275 and below is the definition of DataTable, I added the last line with the "retrieve" Option.
Code:
// Configuration for DataTable
$datatable = array();
$datatable['aaSorting'] = array();
$datatable['lengthMenu'] = array(5, 10, 25, 50, 75, 100);
$datatable['bFilter'] = $params['showfilter'];
$datatable['bSort'] = $params['sortable'];
if ($params['showinitial']) {
$datatable['pageLength'] = $params['showinitial'];
$datatable['bPaginate'] = true;
} else {
$datatable['bPaginate'] = false;
}
$datatable['retrieve'] = true;
Sorry, but I overlooked this option when I first read the article about the error code...
But that way, maybe someone else can use this solution as well.
Best regards,
Andreas.