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 #925168
Pre-Defined Dates
Closed

Comments

  •  2
    John started the conversation

    The author replied:

    Hi there,

    It’s possible with pre-defined filter values via URL. E.g for this demo table:

    http://wpdatatables.com/mysql-table-filter-form/?wdt_column_filter[0]=America&wdt_column_filter[2]=Chicago

    -------------------------------------------------------------------

    I need to know :

    How to pre-defined dates? "from / to" by url?

    especially "today"


    thanks.


  • [deleted] replied

    Hi John,
    Thank you for your purchase

    The format for URL date range filter is ../?wdt_column_filter[2]=20/07/2016|01/08/2016, but unfortunately it is not possible to set for pre-defined value "Today".


  •  2
    John replied

    Hi MIlos, thanks for your answer,

    how can I do?

    I have 3 tables with a single database, I want the third only shows records today


  • [deleted] replied

    Hi John,

    If you are using MySQL query based tables you can write query to select just date that is today. For example something like this:

    SELECT * FROM table_name WHERE `date` = CURDATE()
  •  2
    John replied

    Milos thanks for your answer!

    but that affected at 3 tables ... I just want only a table shows records today

  • [deleted] replied

    Hi John,

    You can:

    1. Create a new table that will use that new query.

    2. If you don't want to create a new table you have to use filters and actions to accomplish this. If table that you are using for today dates is on separate page you can create custom page template. Then you should use filter wpdatatables_filter_mysql_query and you should create little function that will append WHERE `date` = CURDATE() on your existing query. In that function you should use is_page_template in if condition so you will just apply this function on table that is using custom page template. This is description on query that you should use:

    wpdatatables_filter_mysql_query( $query, $table_id )

    This filter is applied to the MySQL query before it is sent to MySQL server.

    $query is the query text, $table_id is the table identifier from the MySQL table (wp_wpdatatables).

  •  2
    John replied

    Milos thank you very much for answering .. but I can not do it, you could give access data please .. I am weeks with this problem

  • [deleted] replied

    Hi John,

    1. It can be done very easy. You just have to create new table that you will use. For example:

    SELECT * FROM table_name WHERE `date` = CURDATE()
    

    2. Something like this requires custom coding. I gave you instruction what you should do to accomplish this, otherwise as you're developing some custom solution if you need our assistance we can offer you our paid customization service.

  •  2
    jbsoluciones replied

    Hi Milos  .. thanks again for your help,

    I want to know how to hide columns to print

    I need the columns for select data, but I want to disappear when printing

  • [deleted] replied

    Hi John,

    You can check "Show column visibility button" under Table tools options. After you set invisible to any column on front-end and when you print it you will not see that invisible column in printed document.

  •  2
    jbsoluciones replied

    Thanks again.. for your answer

    My steps to print:
    in a table with dates

    1. select dates
    2. hide columns (6 columns - many clicks for each print)
    3. print

    I need to select dates and print several times

    I need this :

    1. select dates
    2. print (predefined hidden columns (6))

  • [deleted] replied

    Hi John,

    I didn't understand quite well what you are trying to achieve. Can you describe it in more details?