datatables.min.js:286 Uncaught Unable to find row identifier For more information, please refer

datatables.min.js:286 Uncaught Unable to find row identifier For more information, please refer

support@kosmos.desupport@kosmos.de Posts: 16Questions: 7Answers: 0

I am getting this error in console when I click the edit button.
Uncaught Unable to find row identifier For more information, please refer to https://datatables.net/tn/14
I haved folloed the example shoed on the website, but i keep getting the msh.
What am I doing wrong?

PlanEditor

    editorPlan = new $.fn.dataTable.Editor( {
        ajax:{
        url:'/api/v1/budgets/plan'
        },
        table: "#planTabelle",
        idSrc:"id",
        fields: [{
                label: "Bezeichnung:",
                name: "name",
            },{
                label: "Budget",
                name: "betrag"
            },{
...
            }
        ]
    });

GeschaeftsfeldTabelle

    tabelleGeschaeftsfeld = $('#geschaeftsfeldTabelle').DataTable({
//        stateSave: true,
        select: {
            style: 'single'
        },
        dom: "Bt",
        ajax:{
            url: "/api/v1/budgets/geschaeftsfelder",
            type: "GET",
            data: 
            function(dx){
                var selected = tabellePlan.row( { selected: true } );

                if ( selected.any() ) {
                    dx.pid = selected.data().id;
                    console.log(selected.data().id);
                }                   
            }
        },
        drawCallback: function() {
            console.log("DrawCallback");
          },
        columns: [
            { data: "name" },
            { data: "betrag", render: $.fn.dataTable.render.number( '.', ',', 0, '€' ) },
...

This question has an accepted answers - jump to answer

Answers

Sign In or Register to comment.