基于关系 ID 在 SugarCRM 中实现自定义过滤器
Implementing a custom filter in SugarCRM based on relationship ID
我已经定义了帐户和自定义模块(标签)之间的多对多关系。标签在帐户中有一个子面板;但是,我需要一个关于帐户的自定义过滤器,它将显示与您输入的标签名称相关的所有帐户记录。
/custom/Extension/modules/Accounts/Ext/clients/base/basic/filterAccountsByTag.php
$viewdefs['Account']['base']['filter']['basic']['filters'][] = array(
'id' => 'filterAccountsByTag',
'name' => 'LBL_FILTER_ACCOUNTS_BY_TAG',
'filter_definition' => array(
array(
'custom_tags_accountscustom_tags_ida' => array(
'$equals' => ' ',
),
),
array(
'name' => ''
)
),
'editable' => false,
'is_template' => false
);
总而言之,我想根据子模块的筛选器显示主要模块结果。有没有人经历过这个?这不是相关领域;这是一种关系。
我已经定义了帐户和自定义模块(标签)之间的多对多关系。标签在帐户中有一个子面板;但是,我需要一个关于帐户的自定义过滤器,它将显示与您输入的标签名称相关的所有帐户记录。
/custom/Extension/modules/Accounts/Ext/clients/base/basic/filterAccountsByTag.php
$viewdefs['Account']['base']['filter']['basic']['filters'][] = array(
'id' => 'filterAccountsByTag',
'name' => 'LBL_FILTER_ACCOUNTS_BY_TAG',
'filter_definition' => array(
array(
'custom_tags_accountscustom_tags_ida' => array(
'$equals' => ' ',
),
),
array(
'name' => ''
)
),
'editable' => false,
'is_template' => false
);
总而言之,我想根据子模块的筛选器显示主要模块结果。有没有人经历过这个?这不是相关领域;这是一种关系。