[Vtigercrm-developers] Vtlib date field problem

Darjan Prtic dprtic at gmail.com
Mon Aug 23 07:36:08 PDT 2010


Hm...

Yes it is but there is no mentioning about what values are accepted. In
example you provided VARCHAR(100) and as default value is VARCHAR(255). It
should say somewhere that values for column type could be DB column types.
With hint for Date fields especially.

Darjan Prtic


On Mon, Aug 23, 2010 at 16:29, Prasad <prasad at vtiger.com> wrote:

> 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/
>>
>
>
> _______________________________________________
> http://www.vtiger.com/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20100823/7499b9c5/attachment-0002.html 


More information about the vtigercrm-developers mailing list