Results 1 to 3 of 3

Thread: database value & display value in templates, detail view and list view

  1. #1
    johnnyo is offline Sugar Community Member
    Join Date
    Feb 2006
    Posts
    31

    Default database value & display value in templates, detail view and list view

    I've made several multiple select fields.
    What I've noticed is that in list view, detail view and emails using email templates the database key value is being shown.
    Is there a way to get the display value to show instead???
    Thanks, JohnnyO

  2. #2
    kbrill's Avatar
    kbrill is offline SugarCRM PS Engineer
    Join Date
    Jul 2004
    Location
    St Louis, MO
    Posts
    3,183

    Default Re: database value & display value in templates, detail view and list view

    Can you post your custom/modules/MODULE_NAME/metadata/listviewdefs.php file?
    Kenneth Brill - Help Forum Moderator

    I do not respond to 'Private Messages'. Please email me directly instead

    When asking for help, PLEASE give us your Server Information and Version Numbers as asked for on the 'Post New Message' screen as well as any JavaScript errors shown at the bottom of the browser window.
    Help us Help You

  3. #3
    johnnyo is offline Sugar Community Member
    Join Date
    Feb 2006
    Posts
    31

    Default Re: database value & display value in templates, detail view and list view

    Here it is. Thanks

    <?php
    // created: 2007-08-31 17:40:59
    $listViewDefs['Contacts'] = array (
    'NAME' =>
    array (
    'width' => '20%',
    'label' => 'LBL_LIST_NAME',
    'link' => true,
    'contextMenu' =>
    array (
    'objectType' => 'sugarPerson',
    'metaData' =>
    array (
    'contact_id' => '{$ID}',
    'module' => 'Contacts',
    'return_action' => 'ListView',
    'contact_name' => '{$FULL_NAME}',
    'parent_id' => '{$ACCOUNT_ID}',
    'parent_name' => '{$ACCOUNT_NAME}',
    'return_module' => 'Contacts',
    'parent_type' => 'Account',
    'notes_parent_type' => 'Account',
    ),
    ),
    'orderBy' => 'last_name',
    'default' => true,
    'related_fields' =>
    array (
    0 => 'first_name',
    1 => 'last_name',
    2 => 'salutation',
    3 => 'account_name',
    4 => 'account_id',
    ),
    ),
    'TITLE_DROPDOWN_C' =>
    array (
    'width' => 10,
    'label' => 'title_dropdown_c',
    'default' => true,
    'sortable' => false,
    ),
    'TITLE' =>
    array (
    'width' => '15%',
    'label' => 'LBL_LIST_TITLE',
    'default' => true,
    ),
    'ACCOUNT_NAME' =>
    array (
    'width' => '34%',
    'label' => 'LBL_LIST_ACCOUNT_NAME',
    'module' => 'Accounts',
    'id' => 'ACCOUNT_ID',
    'link' => true,
    'contextMenu' =>
    array (
    'objectType' => 'sugarAccount',
    'metaData' =>
    array (
    'return_module' => 'Contacts',
    'return_action' => 'ListView',
    'module' => 'Accounts',
    'parent_id' => '{$ACCOUNT_ID}',
    'parent_name' => '{$ACCOUNT_NAME}',
    'account_id' => '{$ACCOUNT_ID}',
    'account_name' => '{$ACCOUNT_NAME}',
    ),
    ),
    'default' => true,
    'sortable' => true,
    'ACLTag' => 'ACCOUNT',
    'related_fields' =>
    array (
    0 => 'account_id',
    ),
    ),
    'CREATED_BY_NAME' =>
    array (
    'width' => '10',
    'label' => 'LBL_CREATED',
    'default' => true,
    ),
    );
    ?>

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 4
    Last Post: 2009-10-28, 10:21 AM
  2. Replies: 2
    Last Post: 2006-08-19, 12:00 PM
  3. Replies: 0
    Last Post: 2006-07-11, 10:05 PM
  4. Replies: 0
    Last Post: 2006-05-04, 01:27 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •