[Vtigercrm-developers] One custom module1 field1(UITYPE:- 10), cannot select related module data

pankaj baadhshah at gmail.com
Thu Mar 27 08:44:45 GMT 2014


Hi All,

I have created two custom module by using vtlib
While creating 2nd module ,my code for creating field with UITYPE was like
this given below
$field2 = new Vtiger_Field();
$field2->name = 'related_to_survey';
$field2->label = 'Related To Survey';
$field2->table = $module->basetable;
$field2->column = 'related_to_survey';
$field2->columntype = 'VARCHAR(255)';
$field2->uitype = 10;
$field2->typeofdata = 'V~O';
$block1->addField($field2); /** Creates the field and adds to block */
$field2->setRelatedModules(Array('Survey'));

It means 2nd module is having a field Related To Survey ,pop up opens when
we click on it,and then able to select survey records but not getting
fetched inside "Related To Survey" textbox.


This things work properly for existing modules, lets say if i create related
field for standard modules, it properly fetch data inside box.

Please Help Me...

Thanks
Pankaj Das



--
View this message in context: http://vtiger-crm.2324883.n4.nabble.com/One-custom-module1-field1-UITYPE-10-cannot-select-related-module-data-tp9994.html
Sent from the vtigercrm-developers mailing list archive at Nabble.com.


More information about the vtigercrm-developers mailing list