Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82036

multiple row add

$
0
0

So.. i setup an editor overlay tied to a button "Import" and it pushes only a single field named "csvimport", there i input some comma separated string that matches the columns in the datatable.

I'm then catching this data after submit with preCreate event server-side.. and now I'm wondering what would be the best way to split this down and run multi-insert, triggering each columns validator/formatter etc..

I found a solution client-side on the forums here but I'd much rather do this server-side if possible.

->on( 'preCreate', function ( $e, $row) {
$row['csvinput'] <-- this has a string containing multiple lines of CSV

any ideas?


Viewing all articles
Browse latest Browse all 82036

Trending Articles