I used this code .Its worked only my database.Its added a new field [autoincrement_id] in my account table in my db.But it does not show in listview and Detailview. I want show this fields in listview and Detailview
custom/Extension/modules/yourmodule/Ext/Vardefs/
autoincrement.php
<?php
$dictionary['Account']['fields']['autoincrement_id']['auto_increment'] = true;
?>
<?php
$dictionary['Account']['fields']['autoincrement_id'] = array(
'name' => 'autoincrement_id',
'vname' => 'LBL_LABEL_OF_AUTO_INC_FIELD',
'type' => 'int',
'readonly' => true,
'len' => 11,
'auto_increment' => true,
'disable_num_format' => true,
);
?>
<?php
$dictionary['Account']['indices']['NAME_FOR_INDEX'] = array(
'name' => 'NAME_FOR_INDEX',
'type' => 'unique',
'fields' => array('autoincrement_id'),
);
?>