Okay
  Public Ticket #2682547
Filter type Selectbox does not work
Closed

Comments

  • Renato Thobias started the conversation

    I put a table at the URL I copied above (https://www.newfuntrip.com/desempenho-dos-alunos/) and the filter type selectbox works normally in my admin area, but when I publish the site with the table, when I click on the "Conteúdo" filter above the table, the text field does not open to type what I'm looking for, both on the computer and on the cell phone, it appears until it is inactive, could you help me?

  •  2,507
    Aleksandar replied

    Hello Renato

    I can see that this is an SQL query based table. Depending on the query, your filters may not work correctly.

    From version 2.3 we've implemented a feature that you can use multiple separate DB connections for MySQL, MSSQL and PostgreSQL. For MySQL engine we are dynamically adding the accent grave ( ` ), so there's no need to use it around the table name in the query. If you were to delete them, searching and filtering should work just fine.

    If that doesn't resolve the issue, check if you have semi-colons ( ; ) in the query. If you do - remove them as well.

    If your query includes JOIN's, UNION's, CONCAT's or subqueries, you will need to 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″.

    Please note some this when working with the server-side processing feature:

    • Please do not use “LIMIT” in the SELECT statement. wpDataTables adds it automatically and it will be overridden.
    • Please do not use “ORDER BY” in the SELECT statement. wpDataTables has its own sorting engine so it makes no sense to use MySQL’s sorting, since it will be overridden. Also, server-side processing feature adds this part of statement automatically when users trigger the sorting on the front-end, and having it in initial statement may cause the table to crash.

    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

  • Renato Thobias replied

    Hello Aleksandar

    I looked over everything I said and everything is normal, I didn't have anything you said in the MySQL table and it still isn't working.

    I did a new test, created a simple MySQL table with two entries, name and password, entered only two names and even then the Selectbox and MultiSelectBox do not work.

    I thought it could be a mistake with the high amount of registrations but no.

    Was there any alternative?

    I searched the forum about the error and found a response from you on PUBLIC TICKET # 2678576 saying that it has a correction, "... if you want to implement the fix, and test it out please let me know and I'll send you the fix ... "

    I believe it is the same problem No? If so, I would like this correction ..

    If not, could you give me some other alternative?

  •  2,507
    Aleksandar replied

    Hello Renato

    That's a fix for cell values that include brackets ( ) and I don't see any entries like this in your screenshot.

    Please provide me a temporary WP-admin login for your site where this happens, 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.

    Also, make sure to tell me what's the table ID, so I know where to look.

    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