• Resolved Darth NiN

    (@darth-nin)


    Hi!

    Seems like the search function is not working 100%. I have a list (table) of about 70 companies and when I’m searching for a company that contains a certain word I expect it to list ALL of the companies in the result. This is not the truth. I’m only getting some of them.

    Here’s what I’m talking about: https://www.passionformat.se/?page_id=16

    Try search for the word “Fisk” (which is “fish” in english) and you will NOT get the company “Fisk Idag”, which obviously is in the list.

    Yes, it is in swedish…but I’m sure you’ll understand anyway! ??

    Also, I’d like to ask if it’s possible to make the search function only go through a certain column? Let’s say the one that holds the company names…not the explanation text to the right.

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    I just tried the search and it works for “Fisk” for me. Five search results are shown, including “Fisk Idag”.
    If you continue to have this problem, I suggest that you bring up the question in the Forums of the DataTables JavaScript library at https://www.datatables.net/forums, which is the library that offers the search functionality. Please also include information on the used browser in the bug report. (I tried with Firefox 4b6.)

    On searching only specific columns: Yes, this is possible, with a small piece of JavaScript, which needs to be added to the “Custom Commands” textfield on the “Edit” screen of the table.
    Details can be found in the “bSearchable” entry here: https://datatables.net/usage/columns#bSearchable
    The specific code in your case (only search the company name) should be:

    "aoColumns": [ {"bSearchable": false}, null, {"bSearchable": false}, {"bSearchable": false} ]

    Best wishes,
    Tobias

    Thread Starter Darth NiN

    (@darth-nin)

    Ummm…ok then…perhaps it’s browser-specific then. I’m using ie 8. Will try with another browser! Will try the Custom Command as well.

    Many thanks for fast replying!

    Thread Starter Darth NiN

    (@darth-nin)

    Hey! I added the custom command. It works perfectly…and guess what? The search function is now working as expected! ??

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    yes, the search issue is likely caused by IE 8. There have been reports about problems with it in the past on the DataTables site, if I remember correctly.

    And great to hear that the custom command solved it ??

    Regards,
    Tobias

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: WP-Table Reloaded] Search function is not reliable’ is closed to new replies.