<div dir="ltr">Sachin,<div><br></div><div>I assume you renamed the picklist field after the creation. If yes, that breaks the convention of fieldname vs picklist table so revert back.</div><div><br></div><div>We recommend to prefix modulename for picklist table as you did "terminalstatus" assuming "terminal" to be your module. This will help in creating unique picklist-tables across several module.</div>

<div><br></div><div>Regards,</div><div>Prasad</div></div><div class="gmail_extra"><br clear="all"><div><span style="border-collapse:collapse;font-family:arial,sans-serif;font-size:13px"><b>Connect with us on: </b><a href="http://twitter.com/vtigercrm" style="color:rgb(0,0,204)" target="_blank">Twitter</a> <b>I</b> <a href="http://www.facebook.com/pages/vtiger/226866697333578?sk=wall" style="color:rgb(0,0,204)" target="_blank">Facebook</a> <b>I</b> <a href="https://blogs.vtiger.com/" style="color:rgb(0,0,204)" target="_blank">Blog</a><b> I</b> <a href="http://wiki.vtiger.com/index.php/Main_Page" style="color:rgb(0,0,204)" target="_blank">Wiki</a> <b>I </b><a href="https://discussions.vtiger.com" style="color:rgb(0,0,204)" target="_blank">Forums </a><b>I</b> <a href="https://www.vtiger.com/" style="color:rgb(0,0,204)" target="_blank">Website</a></span></div>


<br><br><div class="gmail_quote">On Fri, Aug 29, 2014 at 8:07 AM, Sachin R <span dir="ltr"><<a href="mailto:sachin.r0481@yahoo.in" target="_blank">sachin.r0481@yahoo.in</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Hi,<br>
<br>
I have noticed a strange behavior in "vtlib" picklist API.<br>
<br>
For example the following code works fine.<br>
<br>
  $field3 = new Vtiger_Field();<br>
  $field3->name = 'terminalstatus';<br>
  $field3->label = 'Status';<br>
  $field3->column = $field3->name;<br>
  $field3->columntype = 'VARCHAR(50)';<br>
  $field3->typeofdata = 'V~M';<br>
  $field3->uitype = 15;<br>
  $block->addField($field3);<br>
<br>
  $field3->setPicklistValues(ARRAY('Active','Inactive'));<br>
<br>
if I rename the field as "status", the pick list is not populated in user interface.<br>
<br>
Regards,<br>
<br>
Sachin<br>
<br>
_______________________________________________<br>
<a href="http://www.vtiger.com/" target="_blank">http://www.vtiger.com/</a><br>
</blockquote></div><br></div>