Lets suppose your custom module is the nat_Payments, the module class is the modules/nat_Payments/nat_Payments.php
So you should implement into this class the two methods I told you before.
Both methods are defined into data/SugarBean.php
the methods would like like that:
PHP Code:
function save($check_notify = false) {
$this->name = $this->field_with_unique_value;
parent::save($check_notify);
}
function get_summary_text() {
return $this->field_with_unique_value;
}
Obviously you should replace the field_with_unique_value by the appropriate field name.
Cheers
Bookmarks