Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

default value in datetime field

Developers
mfdezp
2011-11-10
2013-05-15
  • mfdezp
    mfdezp
    2011-11-10

    Can somebody say me how i can set a default value to a timedate field, in version 3.8.4?

    It seem in older version of P4A, exists setDefaulValue, but now there isn't.

    Thanks.

     
  • croaker___
    croaker___
    2011-11-10

    In 3.8.2, I use:

    p4a_db_source::->fields->myfield->setDefaultValue(1);

    I shouldn't think 3.8.4 is much different…