[Vtigercrm-developers] Vtlib date field problem

Prasad prasad at vtiger.com
Sun Aug 22 19:53:16 PDT 2010


You need to explicitly set the columntype to avoid the default datatype.
$field5->columntype = 'DATE';

NOTE: If the column already exists in the table, the datatype will not be
altered.

Regards,
Prasad

On Mon, Aug 23, 2010 at 12:46 AM, Darjan Prtic <dprtic at gmail.com> wrote:

> Hello all!
>
> I have created date field for my custom module like this
> =====
> $field5 = new Vtiger_Field();
> $field5->name = 'startdate';
> $field5->label = 'Start Date';
> $field5->uitype = 5;
> $field5->typeofdata = 'D~O';
> $field5->displaytype = 1;
> $block2->addField($field5);
> =====
> why is this field in vtiger_my_custom_module not created as date column but
> as Varchar? Am i doing something wrong or it is a bug in vtlib?
>
> Thanks for your replies!
> Darjan Prtic
>
> _______________________________________________
> http://www.vtiger.com/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20100823/523830d2/attachment-0002.html 


More information about the vtigercrm-developers mailing list