How to add related module custom field to a dashlet column and filter

Hello! 

We have a custom module Transactions which has relation to Accounts module custom field funded_c.

How to show that field in the Transactions dashlet with possibility to filter?

Searched a lot, but no similar cases found. Help!

Parents Reply
  • Sugar Version 6.5.25 (Build 344)

    I added that to custom/modules/transactions/metadata/SearchFields.php

    'account_funded' =>
    array (
    'query_type' => 'default',
    'operator' => 'subquery',
    'subquery' => 'SELECT id_c as account_id FROM accounts_cstm WHERE funded_c=',
    'db_field' => array ('account_id'),
    'type' => 'bool',
    )


    And to custom/modules/transactions/metadata/searchdefs.php

    'account_funded' =>
    array (
    'name' => 'account_funded',
    'label' => 'LBL_ACCOUNT_FUNDED',
    'type' => 'bool',
    'default' => true,
    'width' => '10%',
    ),


    And still see that empty box in search settings

Children