Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

How to set current datetime to the datetime field 09 Oct 2014 06:59 #12685

  • vivek
  • vivek's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
  • Posts: 123
  • Thank you received: 2
Hi,
How to set the current datetime to the datetime field?

Also, can you please post a short list of changes that went onto 2.6.5?

Regards
Vivek

Please Log in or Create an account to join the conversation.

How to set current datetime to the datetime field 09 Oct 2014 08:50 #12686

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
You need to define it in the item model in
- loadFormData() : if you want it to be modifiable
- prepareTable() : If you want to set it after the user sent the form (per security)

The description of the last version is here : www.j-cook.pro/index.php/docs/versions/197-2-6-5

Hope it helps
Coding is now a piece of cake
The following user(s) said Thank You: vivek

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.109 seconds

Freakin' Awesome!!! J-Cook is simply awesome - whether you're a highly experienced developer or complete novice whether you're building a small inventory component or a complete community solution! The beauty comes from a fast slick and reliable platform that readily provides developers with everything they'll need to build the backbone of a solid and secure component with wizards for authoring access publishing aliasing created/modified by dates... you name it COOK provides it! J-Cook really surpasses all of the 'competition' as far as MVC tools are concerned! Try love it and get cooking!
learnthrusong (JED)
          

Get Started