uncaught typeerror: failed to execute 'remove' on 'entry': 1 argument required, but only 0 present.

uncaught typeerror: failed to execute 'remove' on 'entry': 1 argument required, but only 0 present.

yaqubyaqub Posts: 2Questions: 1Answers: 0

Answers

  • kthorngrenkthorngren Posts: 21,172Questions: 26Answers: 4,923

    Thats not much information to go on. Do you have custom buttons functions?

    Please post a link to your page or a test case replicating the issue so we can help debug.
    https://datatables.net/manual/tech-notes/10

    Kevin

  • yaqubyaqub Posts: 2Questions: 1Answers: 0
    edited February 2021

    tbl = $('#dataTableRole')
    .DataTable(
    {
    ajax: {
    url: '......',
    type: 'GET'
    },
    order: [[0, 'asc']],
    dom: 'lBfrtip',
    buttons: [
    {
    extend: 'excel',
    className: 'btn-sm btn-success ml-3',
    exportOptions: {
    columns: [0, 1, 2, 3]
    }
    }
    ],
    columns: [
    {
    render: function (data, type, full, meta) {
    return meta.row+1;
    }
    },
    {
    data: 'RoleName'
    },
    {
    data: 'Keterangan'
    },
    {
    data: 'FgActive',
    render: function (data,type,full,meta) {
    if (data == "Y") {
    return "<span class='badge badge-success'>Aktif</span>";
    } else {
    return "<span class='badge badge-secondary'>Tidak Aktif</span>";
    }
    }
    }

            ]
    
         });
    

  • kthorngrenkthorngren Posts: 21,172Questions: 26Answers: 4,923

    There is nothing obvious from your code. Make sure you have the latest versions of Datatables and Buttons. Use the Download Builder.

    In order to help we will need to see a test case showing the issue. Maybe there is something in your data. Try removing one column at a time to see if the issue is fixed. If so the it’s something specific in that column.

    Kevin

This discussion has been closed.