Editor is an undefined function error

Editor is an undefined function error

abhinav0419@gmail.comabhinav0419@gmail.com Posts: 5Questions: 3Answers: 0
edited November 2016 in Free community support

Below is the error I am getting can anyone help me remove it please because I am not able to understand what is the reason behind this error ? my code is given below for the editor table

var editorDataTableModule = (function() {
     return {
     editorInitializer : function() {
     editor = new jQ.fn.dataTable.Editor( {
        "ajax": items,
        "table": "#example",
        "fields": [ {
                "label": "Name",
                "name": "name"
            }, {
                "label": "Start Range",
                "name": "startRange"
            }, {
                "label": "End Range",
                "name": "endRange"
            },           
              {
                "label": "Reporting Risk Grade",
                "name": "reportingRiskGrade"
            },
            {
                "label":"Display Value Grade",
                "name" : "displayValueRiskGrade"
            }
        ]
    });
    editor.add({
    type:  "select",
    label: "Approval Type",
    name:  "approvalType",
    options:[
    "--None--",
    "option1",
"option2"
    ]
    });   
     }
     }
     })();

Edited by Allan - Syntax highlighting. Details on how to highlight code using markdown can be found in this guide.

Replies

  • allanallan Posts: 63,819Questions: 1Answers: 10,517 Site admin

    Hi,

    I looks like your trial has expired and that is probably where the error is coming from. It should actually show a message indicating that the trial has expired - I'll look into why that isn't working.

    I've just extended the trial for your account and it will run for another 15 days. Only the dataTables.editor.js and dataTables.editor.min.js files need to be updated in your current install from the updated trial package.

    Allan

This discussion has been closed.