[Vtigercrm-developers] display type =2 fields are getting displayed in Events edit view
Lajeesh K
lajeesh at practicesuite.com
Tue Jun 18 09:39:11 UTC 2013
Hi,
I have created a field using vtlib. The field is set as non editable by
setting displaytype=2. But this field is displaying in edit view.
Below is the code
include_once('vtlib/Vtiger/Module.php');
$module = Vtiger_Module::getInstance('Events');
$blockInstance =
Vtiger_Block::getInstance('LBL_CUSTOM_INFORMATION',$module);
echo "<p> Create Field for PM APPT KEY</p>";
$fieldInstance=new Vtiger_Field();
$fieldInstance->name='test1';
$fieldInstance->label='test1';
$fieldInstance->table='vtiger_activity';
$fieldInstance->column='test1';
$fieldInstance->columntype='int(10)';
$fieldInstance->uitype=1;
$fieldInstance->typeofdata='V~O';
$fieldInstance->displaytype=2;
echo "<p> Add Field to Block</p>";
$blockInstance->addField($fieldInstance);
echo "<p> End... </p>";
I have created non editable fields in accounts and contacts and it is
working fine. This issue is only in events module
Thanks and regards,
Lajeesh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20130618/667b5593/attachment.html>
More information about the vtigercrm-developers
mailing list