Okay
  Public Ticket #1463843
New user questions
Closed

Comments

  •  4
    cianmaher started the conversation

    I am new to wpdatatables and I have a couple of questions about the table editing capabilities:

    1) I have managed to find a way to hide the ADD / DELETE options from a table however I am looking for a way to edit the modal box to hide the "Apply and Add New" Button. Can someone tell me how this can be achieved?

    2) I would like to show the ID of the row being edited in the modal box but I do not want it to be editable. Is there a way to achieve this?

    3) I have changed the display names of columns but when the update happens to that row i get an error telling me 'Unknown Column in field list" is there a way around this?

    Many thanks in advance for any advice


  •  4
    cianmaher replied

    I have answered question 3 myself....It appears that if you use column alias' in your query it breaks updates to the table. For example:

    select name as Fullname.....

    instead of:

    select name (and then edit in the interface)

  •  471
    Isidora replied

    HI cianmaher,
    Thank you for your purchase.

    We are located in Serbia and our working time is from 10:00 to 17:00 CET. business days and also support system that we are using was not functional.

    1. Every button in editor modal have generated id based on table id. So for  button  "APPLY AND ADD NEW"  you can use css rule: 

    button#table_1_apply_edit_dialog{
        display: none !important;
    }

    if the table have id table_1. You have to check throw Inspect element which id is generated. To hide this buttons you can add this CSS on Custom CSS field on wpDataTables settings page or directly on the page between <style></style> tags.

    2. Id of the row is not recommended to change or modify because wpdatatables use it for operation like adding, edit or delete.

    3. If your MySQL-query based wpDataTable doesn’t work correctly with server-side processing, probably this is happening because wpDataTables server has problems with parsing of the query and building new queries dynamically (happens rarely, but does sometimes). To avoid this please prepare a MySQL view (a stored query), which will return the data that you need, call it e.g. “view1” and then build a wpDataTabled based on a simple query like “SELECT * FROM view1″.

    Kind Regards, 

    Isidora Markovic

    wpDataTables: FAQFacebookTwitterFront-end and back-end demoDocs

    Amelia: FAQFacebookTwitter |  Amelia demo sites | Docs

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

    Powerful FiltersGravity Forms Integration for wpDataTablesFormidable Forms Integration for wpDataTables

  •  4
    cianmaher replied

    Hi Milan,

    Thanks for the reply. To focus now on the 2nd item.

    When I allow a user edit a row they get a popup window. In that Window I would like them to see the row number that they are editing. I do not want them to edit the row number. Just see it. Is that possible?

    Regards,

    Cian


  •  471
    Isidora replied

    Hi Cian,

    You can take a look on this link how you can disable input field.

    Kind Regards, 

    Isidora Markovic

    wpDataTables: FAQFacebookTwitterFront-end and back-end demoDocs

    Amelia: FAQFacebookTwitter |  Amelia demo sites | Docs

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

    Powerful FiltersGravity Forms Integration for wpDataTablesFormidable Forms Integration for wpDataTables