[Vtigercrm-developers] uitype 10 - value not displaying

Adam Heinz amh at metricwise.net
Mon Feb 4 12:38:53 PST 2013


For uitype 10, I use:

$field->columntype = 'INTEGER'
$field->typeofdata = 'I~O';

Is field name allowed to be mixed case?



On Mon, Feb 4, 2013 at 3:32 PM, Richard Hills <richard at tw.co.nz> wrote:

> Hi all.
>
> I am setting up a basic vtlib module which has a relation requirement
> between an existing module.
>
> >         $field new Vtiger_Field();
> >         $field->name = 'RelatedTo';
> >         $field->label = 'Related To';
> >         $field->table = 'vtiger_module2';
> >         $field->column = 'relatedto';
> >         $field->columntype = 'VARCHAR(255)';
> >         $field->uitype = 10;
> >         $field->typeofdata = 'V~O';
> >         $field->helpinfo = 'Relate to an existing orchard';
> >         $field->masseditable = 0;
> >         $block->addField($field);
> >         $field->setRelatedModules(Array('Module1'));
>
> This all works file and the values are saved correctly. However when in
> edit, list and detail mode the value of "relatedto" is empty.
>
> I was wondering if anyone could point out what my problem is likely to be?
>
> Thanks
>
> --
> Richard Hills
> TechnologyWise Ltd, Tauranga, NZ
> richard at tw.co.nz
> www.technologywise.co.nz
> ph: +64 (0)7 571 1060
> fax: +64 (0)7 571 1061
>
> _______________________________________________
> http://www.vtiger.com/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20130204/42a62c52/attachment.html 


More information about the vtigercrm-developers mailing list