• Resolved simonbeat

    (@simonbeat)


    Hi Tobias.

    I was working around with you awesome plugin and I was trying to apply the checkbox filters that another user already made.

    https://www.ads-software.com/support/topic/the-use-of-checkboxes-to-filter-a-table/

    So I copy the same steps but my code doesnt work and appears some new issues.

    1. This message appears everytime I reload the page “DataTables warning: table id=tablepress-1 – Cannot reinitialise DataTable. For more information about this error, please see https://datatables.net/tn/3” I try to fixed it with the instructions of the link but nothing works. can you please tell me what method I need to apply and where goes this code?

    2. The filter doesn’t search inside the table, I add the attr name in the inputs but it dont work. What could be wrong I use the same code as previous user.

    3. The table doesn′t take my selected option from the backend and draw again the table with pagination, input text filed search, inputs options show X entries and fields count information…. all this option was disable in the wordpress backend.

    This is the url that Im working…. https://cripto.co/hudson/index.php/availability/

    Thanks in advantage for your help Tobias…..

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter simonbeat

    (@simonbeat)

    Also I want to implement a range checkbox filter…. any recomendation to get done this kind of filter???? Thanks again sir.

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    When doing this, you can not use the DataTables integration that TablePress offers in parallel. You should turn off the “Use DataTables” checkbox on the table’s “Edit” screen. Then, you have full control of what happens with your own code. There, you can also add the options again, by directly specifying them in the JS code, following the DataTables documentation.

    Regards,
    Tobias

    Thread Starter simonbeat

    (@simonbeat)

    Hi Tobias, I just turn off the “Use DataTables” checkbox on the table’s “Edit” screen, but the filters still dont work….. what could be happen???

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    the JavaScript code is probably wrong. To me,

    table.column($(this).attr('name')).search('Yes');
    

    sounds like it would be filtering a column for the word “Yes” and not for your desired search term.

    Regards,
    Tobias

    Thread Starter simonbeat

    (@simonbeat)

    Hi Tobias.

    I use the same code that you give to another user…. look this link, he solved the issue with that code…. so I dont really know what could be happen…..

    https://brownsbest.de/table-test/

    Can you please tell me wht could be wrong wih my code?

    Thanks a lot sir.

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    this is actually not my code, the other user developed it. And it seems that he has a different table structure and setup.

    Here, I can only point you to the DataTables documentation, where you can learn how to search a table with the JavaScript API, and then adjust your code. Sorry.

    Regards,
    Tobias

    Thread Starter simonbeat

    (@simonbeat)

    Ok thanks Tobias….

    Last favour, can you delete please this support post? Thaks again for you attention.

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    no problem! Sorry that I could not provide a direct solution.

    Unfortunately, as I’m not a moderator here, I can’t delete anything, sorry. I’m also just a regular forum user.

    Regards,
    Tobias

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Issues with checkbox filters’ is closed to new replies.