[Vtigercrm-developers] workflows not working

Ramya Banglore ramya.banglore at gmail.com
Tue Oct 9 00:22:07 PDT 2012


On Mon, Oct 8, 2012 at 6:46 PM, Adam Heinz <amh at metricwise.net> wrote:

> On Sat, Oct 6, 2012 at 1:23 AM, Ramya Banglore <ramya.banglore at gmail.com>
> wrote:
> > Can anybody tel me,uitype for checkbox, i want to create a field for
> > checkbox
>
> Hi ,
>

i am able to create a field under Calendar module by using below script for
custom field under "to do" ,field created but i can't able to see,where it
is created , can anybody tel me please.................................
<?php
ini_set('display_errors', true);
ini_set('error_reporting', E_ALL & ~E_NOTICE & ~E_DEPRECATED);
require_once('vtlib/Vtiger/Module.php');
include_once('vtlib/Vtiger/Utils.php');
include_once('vtlib/Vtiger/Menu.php');
require_once('vtlib/Vtiger/Block.php');
require_once('vtlib/Vtiger/Field.php');
$Vtiger_Utils_Log = true;
$module=Vtiger_Module::getInstance('Calendar');
//$module=Vtiger_Block::getInstance('LBL_USERLOGIN_ROLE',$module);
$block = Vtiger_Block::getInstance('LBL_CUSTOM_INFORMATION',$module);
$field=new Vtiger_Field();
$field->label='Color';
$field->name='color';
$field->table='vtiger_activity';
$field->name='color';
$field->columntype = 'VARCHAR(50)';
$field->uitype = 13;
$field->typeofdata = 'V~M';
$block->addField($field);
$field->setPicklistValues( Array ('Dept1', 'Dept2','Dept2','Dept4'));
//$block->save($module);
$module->initWebservice();

echo 'Code successfully executed';
?>

> _______________________________________________
> http://www.vtiger.com/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20121009/3485dba6/attachment.html 


More information about the vtigercrm-developers mailing list