[Vtigercrm-developers] Vtlib API and Picklist

Sachin R sachin.r0481 at yahoo.in
Fri Aug 29 02:37:41 GMT 2014


Hi,

I have noticed a strange behavior in "vtlib" picklist API.

For example the following code works fine.

  $field3 = new Vtiger_Field();
  $field3->name = 'terminalstatus';
  $field3->label = 'Status';
  $field3->column = $field3->name;
  $field3->columntype = 'VARCHAR(50)';
  $field3->typeofdata = 'V~M';
  $field3->uitype = 15;
  $block->addField($field3);
  
  $field3->setPicklistValues(ARRAY('Active','Inactive'));

if I rename the field as "status", the pick list is not populated in user interface.

Regards,

Sachin



More information about the vtigercrm-developers mailing list