I used the download builder to create files including Editor and Edit is not working.

I used the download builder to create files including Editor and Edit is not working.

tmillerintaccttmillerintacct Posts: 9Questions: 2Answers: 0

I paid for the editor and it does download a directory for Editor-1.5.1. At the end of the page it says to just include the two root files:
<link rel="stylesheet" type="text/css" href="DataTables/datatables.min.css"/>

Which I put in my code/html file. I include my .js file as well that is working with the trial set I had going. The editor worked there. But while I get my data from my php custom code, the Edit button is not showing up on the page and the events are not firing back to my php code. I have a log file that saves each request for debugging.

Even though I said to include the editor package, am I supposed to include additional js/css files in my main html page? Been trying some combos, but thought I would ask here as I am probably making some newb mistake.

Answers

  • tmillerintaccttmillerintacct Posts: 9Questions: 2Answers: 0
    edited September 2015

    maybe I missed something in the build?

    /*
     * This combined file was created by the DataTables downloader builder:
     *   https://datatables.net/download
     *
     * To rebuild or modify this file with the latest versions of the included
     * software please visit:
     *   https://datatables.net/download/#dt/jq-2.1.4,moment-2.10.6,ed-bsdate-4.15.35,ju-1.11.4,ed-mask-1.13.4,dt-1.10.9,e-1.5.1,ef-jqdate-1.11.4,ef-mask-1.13.3,fc-3.1.0,fh-3.0.0,kt-2.0.0,sc-1.3.0
     *
     * Included libraries:
     *   jQuery 2.1.4, Moment 2.10.6, Bootstrap Date Time Picker 4.15.35, jQuery UI 1.11.4, jQuery Mask 1.13.4, DataTables 1.10.9, Editor 1.5.1, Field type - jQuery UI DatePicker 1.11.4, Field type - Mask 1.13.3, FixedColumns 3.1.0, FixedHeader 3.0.0, KeyTable 2.0.0, Scroller 1.3.0
     */
    

    I rebuilt it without FixedColumns, re-uploaded, still no luck.

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin

    Hi,

    Sorry to hear you are having problems with this.

    At the end of the page

    Could you give me a link to the page that mentions this so I can correct it please?

    Even though I said to include the editor package, am I supposed to include additional js/css files in my main html page?

    If you are using the download builder, all you should need to include are the DataTables files from the builder and the Editor files from your local Editor copy.

    the Edit button is not showing up on the page

    Can you show me the Javascript being used to create the Editor and DataTables?

    Do you have a link to the page you are working on you can give me so I can check it out directly?

    Thanks,
    Allan

  • tmillerintaccttmillerintacct Posts: 9Questions: 2Answers: 0

    I will make it more generic and post everything here.

  • tmillerintaccttmillerintacct Posts: 9Questions: 2Answers: 0
    edited September 2015

    I have PHP code that will just return a JSON array of dummy data set up. The edit function should show up and send the request, but I do not have it processing the edit request. I just made it a simple PHP integration to hard coded data. But I should see the edit button and inline editing working with requests sent to my code and logged, as I did in the trial piece.

    The test data is set up at:

    https://dev.intacctservices.com/tmtest/DTproject/project.html

    You can view source and see the html and javascript.

    I did put the DataTables files in its own directory so I can just reference it in any other code I need. And I modified some of the links to url's to work with the location of the DataTables files that I downloaded from the generator and unzipped.

    I just found out about the debug link/bookmark. Didn't seem to work on chrome, but did in firefox. The link to my debug results:

    https://debug.datatables.net/ovoxud

    In case this helps.

  • tmillerintaccttmillerintacct Posts: 9Questions: 2Answers: 0

    btw, I noticed the buttons piece was not in my code based on the debugger. I rebuilt a package to include the buttons, but then I get an error about too many buttons. I switched back to what I first had above. I can quickly make the one available for the buttons if needed.

  • tmillerintaccttmillerintacct Posts: 9Questions: 2Answers: 0

    I created a page that points to the original js/css files that worked and this one shows the edit button. The custom js file for my table is the same for both. Page is at:

    https://dev.intacctservices.com/tmtest/DTproject/project.old.html

    Debug page is:

    https://debug.datatables.net/ihufeg

    Difference I see is the DataTables is 1.10.8 and Buttone is 1.0.1 on the working pages I have. None working pages have the latest.

  • tmillerintaccttmillerintacct Posts: 9Questions: 2Answers: 0
    edited September 2015

    Tried many things over the weekend and it looks like it boils down to this thread with the answer about the select piece. I pointed to the cdn version and I am back to the trial solution. Now to just get the inline editing working. UPDATE, got it working as well.

    Here is the thread:

    https://datatables.net/forums/discussion/29443/uncaught-buttons-too-many-iterations

    I was getting the same error in this discussion.

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin

    Hi,

    Good to hear you've got it working now :-)

    Allan

This discussion has been closed.