Okay
  Public Ticket #2342536
Edit
Closed

Comments

  • George Hurlburt started the conversation

    Just bought and installed. Created a table using the leftmost option with a SQL query. Configured to edit, but edits are not taking hold in the underlying MYSQL database. Also have activated the account. Can perform the edit and submit it and a green button indicates success. Upon refresh, however, the database remains unchanged in the editor and in PhPMyAdmin view.

  •  2,498
    Aleksandar replied

    Hello George

    Thank you for your purchase

    To create MySQL-based editable tables, the algorithm is a little more complicated.

    First, you will need to create a table on the MySQL side, and a MySQL-query based wpDataTable; the steps for this are described in this tutorial.

    Once the table is created, go to the “Editing” tab in table configuration settings and click the “Allow editing” button like from the example above.
    The wpDataTables plugin will then try to guess the  “MySQL table name for editing” and the “ID column for editing”  (if the column name is “id” or “ID” or similar, it will usually guess correctly).

    In some cases, it is necessary to provide the name for “MySQL table name for editing” and the “ID column for editing” for two reasons: First, it is not always possible to parse it from the query; and second – there are situations when you would like to send the changes to a different table rather from than the one used in the query. After you define these settings don’t forget to press the “Apply” button.

    The ID column is very important, because if you don't use an Auto-Increment Unique column, you may experience issues like this.

    On the other hand, if you use a column with non-unique values as an ID column, it might happen that when you save the settings on the front-end, not only one column, but multiple columns will be edited. It therefore makes sense to make the ID columns invisible (uncheck the “Visible” checkbox for this column) so as not to confuse the users, since IDs are usually not human-readable.

    Also, please note that only one MySQL table can be edited at a time. Queries from multiple tables with joins cannot be used as an editable feature, since SQL UPDATE and INSERT statements are generated automatically, and there currently is no way to update multiple tables

    Kind Regards, 

    Aleksandar Vuković
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables

  • George Hurlburt replied

    Once again carefully followed all directions provided. The database and the auto increment id column are correctly identified. After setup, on the "table preview and columns setup" window, however, I do not get the red or green buttons on the right side. Only seeing yellow and the elongated blue button. Again, when I attempt to edit, I can make a change in any field on the table and save the results. I then get a green "Success! Data have been saved" button on the upper right. Nonetheless, the change is not saved in the MySql table as can be seen in the database itself and upon refresh of presumed revised the data table.

  •  2,498
    Aleksandar replied

    Hi again George

    Since you don't see the red and green buttons (remove and add new column), it simply means you have an SQL query based table, where you can't add or remove columns.

    You can only add the formula columns (the long blue button).

    The issue with SQL Query based tables is probably in the "ID column for editing" you configured in the "Editing" tab above the table. That column needs to be a primary auto-increment column in the database, otherwise issues like this can occur.

    If you still can't get it to work, please provide me:

    • A temporary WP-admin login for your site where this happens
    • Database access (PHPMyAdmin or cPanel)

    So we could log in and take a look ‘from the inside’ as that’s the most efficient way to see and resolve the issue. We do not interfere with any data or anything else except for the plugin (in case that’s a production version of the site), and of course we do not provide login data to third party. 

    You can write credentials here just check Private Reply so nobody can see them except us.

    Kind Regards, 

    Aleksandar Vuković
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables

  • George Hurlburt replied

    Today, I truncated the database in MySql and changed the auto incumbent primary column name to "ID". I then restored the data.As a result, I can now perform edits on the front end that results in persistent changes to the data as displayed, but these changes do not appear refresh the underlying MySql database. Perhaps this is by design, but rather disconcerting as it suggests a pseudo database that independently overlays the MySql database. In any case, I can now edit on the front end. I did note, however, when editing a data field, the dates change arbitrarily after submission.

  •  2,498
    Aleksandar replied

    Hello again George

    If you've created a table from a database table, and that wpDataTable is editable - the underlying database table has to save those changes as well. Simply because wpDataTables is pulling the data from the database, and it can't store the edited data anywhere else other than the table it was created from.

    Please provide me:

    • A temporary WP-admin login for your site where this happens
    • Database access (PHPMyAdmin or cPanel)

    So we could log in and take a look ‘from the inside’ as that’s the most efficient way to see and resolve the issue. We do not interfere with any data or anything else except for the plugin (in case that’s a production version of the site), and of course we do not provide login data to third party. 

    You can write credentials here just check Private Reply so nobody can see them except us.

    Kind Regards, 

    Aleksandar Vuković
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables

  • George Hurlburt replied

    All is now well. Today, I performed an edit and it "took" on the MySql side. I fear, I foolishly forgot to refresh the database browser in yesterday's trials and, hence, saw the old data and assumed the worst. In any case it now works as advertised. Many thanks for your able assistance and patience as I climbed up a learning curve. All of the features in this plugin are simply outstanding and will save countless hours of tedious PHP coding. Great product!

  •  2,498
    Aleksandar replied

    Thank you, George

    I'm glad to hear everything is working as it should.

    If you have any further questions or issues, please feel free to open a new ticket, and we'll gladly help.


    Kind Regards, 

    Aleksandar Vuković
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables