We're Moving to a New Support Platform – Starting June 1st!

We’re excited to let you know that starting June 1st, we’ll be transitioning to a new support system that will be available directly on our product websites – Amelia, wpDataTables, and Report Builder. In fact, the new support platform is already live for Amelia and wpDataTables, and we encourage you to reach out to us there.

You'll always be able to reach us through a widget in the bottom right corner of each website, where you can ask questions, report issues, or simply get assistance.

While we still do not offer live support, a new advanced, AI-powered assistant, trained on our documentation, use cases, and real conversations with our team, is there to help with basic to intermediate questions in no time.

We're doing our best to make this transition smooth and hassle-free. After June 1st, this current support website will redirect you to the new "Contact Us" pages on our product sites.

Thanks for your continued support and trust – we’re excited to bring you an even better support experience!

Okay
  Public Ticket #893896
Filter table for null values
Closed

Comments

  •  2
    Richelle Morats started the conversation

    How would I filter a table for null or blank values using the standard filtering (not predefined filter values)? Thanks for your help!

  • [deleted] replied

    Hi Richelle,

    We need some more information like what kind of table do you use, is it server side or not? Do you have both blank values and NULL? Maybe it would be the best if you can send us link with that table so we can take a look.

  •  2
    Richelle Morats replied

    Hi Miljko,

    The table uses a mySQL Query and server-side processing.  I want to be able to filter for blank values.

    As a work-around, I modified the SQL View used to replace blank values with '0' so we can filter for '0' to find the blank values. But, this is not ideal and I would like to have a way to filter for these blank values. Any suggestions are appreciated!

    Your plug-in is great, thank you.

    Richelle

  • [deleted] replied

    Hi Richelle, 

    Which filter type do you plan to use? 

    Our filters are string based so unfortunately they can't search for NULL value without code customization. 

    One of the solutions would be to modify the query using a WP hook/filter: 

    wpdatatables_filter_mysql_query( $query, $table_id )

    And modify the query 'on the fly' in a way that a filter for blank string would additionally perform a ' OR IS NULL(column_name) ' search.