[Vtigercrm-developers] Vtlib date field problem

Prasad prasad at vtiger.com
Mon Aug 23 07:29:46 PDT 2010


This hint is captured in Step 3 of vtlib documentation.

On Mon, Aug 23, 2010 at 7:48 PM, Darjan Prtic <dprtic at gmail.com> wrote:

> Thanks Prasad!
>
> It would be nice if you put it in next vtlib documentation release.
>
>
> Darjan Prtic
>
>
> On Mon, Aug 23, 2010 at 04:53, Prasad <prasad at vtiger.com> wrote:
>
>> 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/
>>>
>>
>>
>> _______________________________________________
>> http://www.vtiger.com/
>>
>
>
> _______________________________________________
> http://www.vtiger.com/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20100823/b0d70c07/attachment-0002.html 


More information about the vtigercrm-developers mailing list