Table of Contents Previous Next

Sugar Developer Guide

Version 5.1


Chapter 4 Customizing Sugar : User Interface Customizations : Custom Grouping of Values

Custom Grouping of Values
This is a common scenario in DetailViews, especially for address blocks. This can be achieved as follows:
array (
'name' => 'date_modified',
'customCode' => '{$fields.date_modified.value} {$APP.LBL_BY} {$fields.modified_by_name.value}',
'label' => 'LBL_DATE_MODIFIED',
),

This will group the date_modified value and the modified_by_name values together with the $APP.LBL_BY label in between. The 'customCode' key is a direct Smarty inline code replacement. At the time of parsing the $fields array will be populated with the values populated for the request bean instance.

Table of Contents Previous Next

Copyright 2004-2008 SugarCRM Inc.
Product License