【发布时间】:2018-01-27 04:25:07
【问题描述】:
我在 Accounts 模块上有一个名为 code 的自定义字段,我想在全局搜索中启用它,以便在搜索栏中输入不带通配符的搜索。
假设我有一些记录,其值为“88990”、“23477”和“12347”。 如果有人使用全局搜索并输入 347,它应该将代码 23477 和 12347 的帐户返回给我。 我不想输入 %347 哟结果。 我怎样才能做到这一点? 我有代码 custom/Extension/modules/Account/Ext/Vardefs/sugarfield_code_c.php
$dictionary['Account']['fields']['code_c']['inline_edit']='1';
$dictionary['Account']['fields']['code_c']['labelValue']='test code';
$dictionary['Account']['fields']['code_c']['unified_search']=true;
在 custom/modules/Accounts/SearchFields.php 我有
$searchFields['Accounts'] = array(
'code_c' =>
array(
'query_type' => 'default'
)
);
【问题讨论】: