在Dynamics CRM中,如何在“快速查找”中默认启用通配符(*)搜索? [英] In Dynamics CRM, how do I enable wildcard (*) search by default in Quick Find?
问题描述
在crm 2011内部部署中,我们有快速查找功能,该功能在任何文本搜索的开头都添加了自动*。现在它不起作用了。
在所有查找中,如果我们在搜索中写abc,它就会在begininig处自动添加*,但在快速查找中,它的功能不像查找。
我用Google搜索了它,但找不到任何解决方法。在汇总14之前,我们已经开始使用此功能。
我找到了答案。
-
转到以下路径并找到 stage.js文件 C:\Program Files\Microsoft Dynamics CRM\CRMWeb_static_common\脚本\
-
在进行任何修改之前创建此文件的备份副本,以便您也拥有原始副本
-
在文本编辑器(例如EmEditor)中打开 stage.js
-
查找以下代码行:
sFindCriteria = Trim(findCriteria.value.replace(/ [\ *] + /, *)); findCriteria .value = sFindCriteria;
-
现在将其更改为:
< pre class = lang-js prettyprint-override>sFindCriteria = Trim(findCriteria.value.replace(/ [\ *] + /, *))); if(sFindCriteria!= && s sFindCriteria.substr(0,1)!= *)sFindCriteria = * + sFindCriteria; findCriteria.value = sFindCriteria;
-
保存文件并尝试快速查找以查看更改
我今天正在更新此答案( 2015年12月23日
),因为我在这里找到了更好的解决方案:
In crm 2011 On-premise we had Quick Find that added automatic * at the beginning of any text search. Now it is not working.
In all lookups we have if we write abc in search it automatically adds * at the begininig but in Quick Find it does not functioning the same like lookup.
I googled it but cannot find any work around. Before Rollup 14 we were having this thing working.
I have found an answer.
Go to the following path and find "stage.js" file "C:\Program Files\Microsoft Dynamics CRM\CRMWeb_static_common\scripts\"
Create a backup copy of this file before any modification, so that you have the original copy too
Open "stage.js" in a text editor such as EmEditor
Find the following line of code:
sFindCriteria=Trim(findCriteria.value.replace(/[\*]+/,"*"));findCriteria.value=sFindCriteria;
Now change it to :
sFindCriteria=Trim(findCriteria.value.replace(/[\*]+/,"*"));if (sFindCriteria != "" && sFindCriteria.substr(0, 1) != "*") sFindCriteria = "*" + sFindCriteria;findCriteria.value=sFindCriteria;
Save the file and try Quick Find to see the change
I am updting this answer today (23rd-Dec-2015
) because i found a better solution i posted here:
CRM 2011 Quick Find Search using default wildcard (*) automatically
这篇关于在Dynamics CRM中,如何在“快速查找”中默认启用通配符(*)搜索?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!