vtigerCRM-Spain

vtigerCRM-Spain::Desarrollo vtlib Module Sequence Field

A custom auto numbering field can be created through

$oField0 = new Vtiger_Field();
$oField0->name = 'entrynr';            // change fieldname
$oField0->label = 'LBL_ENTRY_NR';
$oField0->table = $oModule->basetable;
$oField0->column = 'entrynr';          // change fieldname
$oField0->columntype = 'VARCHAR(100)';
$oField0->uitype = 4;
$oField0->typeofdata = 'V~O';
$oBlock1->addField($oField0);
# setup auto value
$oEntity = new CRMEntity();
$oEntity->setModuleSeqNumber("configure",$oModule->name,"ENR",1);  // change ENR to your sequence prefix 

bitconstructor
How to add the customized record numbering field?