I am using some DataTable extensions. Are they only available via licensed Editor?

I am using some DataTable extensions. Are they only available via licensed Editor?

joellerjoeller Posts: 48Questions: 9Answers: 0
edited February 2018 in Free community support

I am creating dataTable of a table.
I am using this function to set dataTable

               var editor = $('#tableRiks').DataTable(
            {
                dom: "Bfrtip",
                //ajax: thisURL,
                columns: [
                    {
                        data: null,
                        defaultContent: '',
                        className: 'select-checkbox',
                        orderable: false
                    },
                    { data: "RIKName" },
                    { data: "StockIssueQty" },
                    { data: "StockShipDate" },
                    { data: "CCDesc" },
                    { data: "Customer" }
                ],
                order: [2, 'asc'],
                select: {
                    style: 'os',
                    selector: 'td:first-child'
                },
                buttons: [
                    { text: "Add", 
                        action: function() {alert("make new RIK");} },
                    {
                        text: "Edit",
                        action: function () { alert("Edit RIK"); }
                    },
                    {
                        text: "Remove",
                        action: function () { alert("remove RIK"); }
                    }
                ]
        });

Everything seems to be working right. I had just downloaded the new datatables.js file. How based on issues discovered with the Editor license, I was worried that some of the tools (specifically buttons), might be only available via the Editor license. Since I found out about these buttons and the Button extension on the Editor pages of the datatables.net web site I wanted to be sure that they are not covered by that license.

(The actions covered by the buttons are planned to call home grown AJAX functions to carry out the CRUD work, rather than using built in Editor functions.)

This question has an accepted answers - jump to answer

Answers

  • Loren MaxwellLoren Maxwell Posts: 406Questions: 99Answers: 10
    edited February 2018 Answer ✓

    All the extensions, including Buttons, are DataTables extensions that work without Editor.

    Actually in your code above it doesn't appear you're using Editor at all.

    Your "editor" variable is actually an instance of a DataTable, not the Editor.

  • joellerjoeller Posts: 48Questions: 9Answers: 0

    Thanks. I am not authorized to purchase Software for the group. So I did not want to in advertently use any Editor tools I go with my download on a trial basis with my production app.

  • joellerjoeller Posts: 48Questions: 9Answers: 0

    I am surprised. I am not using any Editor tools but I am getting an trial expired error in my reference to DataTables. Does the Datatables.js file include Editor even if you are using Editor? What is the name of the download file I am supposed to be using that has the latest version of Databases but not Editor?

    throw 'Editor - Trial expired';}
    
  • joellerjoeller Posts: 48Questions: 9Answers: 0

    OK went into download page and made a new datatables.zip file making sure that I did NOT include editor in the selection. I replaced the existing datatables.js with the new one from new download. Then I called the application and there was no issue with throwing editor expired errors. However I may have to wait a couple of weeks before I can verify that it is no longer looking for a editor license.

  • allanallan Posts: 63,542Questions: 1Answers: 10,476 Site admin

    If you don't select the Editor option on the download page it will not include Editor.

    Allan

This discussion has been closed.