Hey there, Awesome Customers!

Just a heads up: We'll be taking a breather to celebrate International Workers' Day (May 1st and 2nd - Wednesday and Thursday) and Orthodox Easter from Good Friday (May 3rd) through Easter Monday (May 6th). So, from May 1st to May 6th, our team will be off enjoying some well-deserved downtime.

During this time, our customer support will be running on a smaller crew, but don't worry! We'll still be around to help with any urgent matters, though it might take us a bit longer than usual to get back to you.

We'll be back in action at full throttle on May 7th (Tuesday), ready to tackle your questions and requests with gusto!

In the meantime, you can explore our documentation for Amelia and wpDataTables. You'll find loads of helpful resources, including articles and handy video tutorials on YouTube (Amelia's YouTube Channel and wpDataTables' YouTube Channel). These gems might just have the answers you're looking for while we're kicking back.

Thanks a bunch for your understanding and support!

Catch you on the flip side!

Warm regards,

TMS

Okay
  Public Ticket #1349974
Date Stamp
Closed

Comments

  • jhilburn started the conversation

    I would like the date column to automatically add the current date when  row of data is added. Please advise.

  •  5
    Jottes replied

    What kind of data source are you using?

  •  471
    Isidora replied

    Hi jhilburn

    Thank you for your purchase.

    Sorry for late response. We are located in Serbia and our working time is from 10:00 to 17:00 CET. business days.

    Unfortunately that is not possible with built in features of plugin, but some of our customers make some workaround. We did't test this so we can't guarantee that will work for you but you can try. You can take a look on that ticket on this link.

    Hi Johannes,

    If you have any issues can you please open a new ticket, we will gladly help.


    Kind Regards, 

    Isidora Markovic

    wpDataTables: FAQFacebookTwitterFront-end and back-end demoDocs

    Amelia: FAQFacebookTwitter |  Amelia demo sites | Docs

    You can try our wpDataTables add-ons before purchase on these sandbox sites:

    Powerful FiltersGravity Forms Integration for wpDataTablesFormidable Forms Integration for wpDataTables

  • jhilburn replied

    Hi Johannes,

    Johannes I am using MySQL as the data source.


    Hi Milan.

    Your response time is fine, thank you.

    This seems so simple. There should be a way to add =NOW() for datetime fields.

    MySQL allows this to be done for timestamps and datetime during the creation of the table.

    CREATE TABLE t1 ( ts TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, dt DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
    );

    A standard practice in data structure design is to have an identity column and a datetime stamp. These two columns insure 1st normal form is enforced automatically. It also is extremely useful for identifying when a record was created.

    My workaround at this point is to add the field to the end of the table, and force it to fill in. I have seen that it auto populates but a user can change the data, which is very bad for data integrity issues. I had hoped your solution would eliminate coding custom forms, but clearly I am wrong about that.


    I understand that you don't support it, but it makes no sense to me that something this fundamental is missing. 


  •  471
    Isidora replied

    Hi jhilburn,

    Thank you for your suggestion. I will forward this to my team to think about this like new feature in future. 

    For now only option how could you insert current datetime/time is manually over datetimepicker.

    Kind Regards, 

    Isidora Markovic

    wpDataTables: FAQFacebookTwitterFront-end and back-end demoDocs

    Amelia: FAQFacebookTwitter |  Amelia demo sites | Docs

    You can try our wpDataTables add-ons before purchase on these sandbox sites:

    Powerful FiltersGravity Forms Integration for wpDataTablesFormidable Forms Integration for wpDataTables

  •  5
    Jottes replied

    Hi jhilburn,

    simply modify your table in SQL backend and add a column which is defaulted to the current timestamp:

    ALTER TABLE t1 ADD `createdon` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP;
    

    Please note that I am not an official support user. I am a customer just like you, trying to help out. ;-)

    Regards,

    Johannes

  • jhilburn replied

    Hi Johannes,

    I should have thought of that myself. I tried to modify the column I created through wptables the first time around but it would not update. Adding a column in this manner makes total sense. Thank you for the tip!