在Dynamics CRM中,如何在“快速查找”中默认启用通配符(*)搜索? [英] In Dynamics CRM, how do I enable wildcard (*) search by default in Quick Find?

查看:98
本文介绍了在Dynamics CRM中,如何在“快速查找”中默认启用通配符(*)搜索?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在crm 2011内部部署中,我们有快速查找功能,该功能在任何文本搜索的开头都添加了自动*。现在它不起作用了。



在所有查找中,如果我们在搜索中写abc,它就会在begininig处自动添加*,但在快速查找中,它的功能不像查找。



我用Google搜索了它,但找不到任何解决方法。在汇总14之前,我们已经开始使用此功能。

解决方案

我找到了答案。


  1. 转到以下路径并找到 stage.js文件 C:\Program Files\Microsoft Dynamics CRM\CRMWeb_static_common\脚本\


  2. 在进行任何修改之前创建此文件的备份副本,以便您也拥有原始副本


  3. 在文本编辑器(例如EmEditor)中打开 stage.js


  4. 查找以下代码行:

      sFindCriteria = Trim(findCriteria.value.replace(/ [\ *] + /, *)); findCriteria .value = sFindCriteria; 


  5. 现在将其更改为:



    < pre class = lang-js prettyprint-override> sFindCriteria = Trim(findCriteria.value.replace(/ [\ *] + /, *))); if(sFindCriteria!= && s sFindCriteria.substr(0,1)!= *)sFindCriteria = * + sFindCriteria; findCriteria.value = sFindCriteria;


  6. 保存文件并尝试快速查找以查看更改


我今天正在更新此答案( 2015年12月23日),因为我在这里找到了更好的解决方案:



CRM 2011快速查找自动使用默认通配符(*)进行搜索


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.

  1. Go to the following path and find "stage.js" file "C:\Program Files\Microsoft Dynamics CRM\CRMWeb_static_common\scripts\"

  2. Create a backup copy of this file before any modification, so that you have the original copy too

  3. Open "stage.js" in a text editor such as EmEditor

  4. Find the following line of code:

    sFindCriteria=Trim(findCriteria.value.replace(/[\*]+/,"*"));findCriteria.value=sFindCriteria;
    

  5. Now change it to :

    sFindCriteria=Trim(findCriteria.value.replace(/[\*]+/,"*"));if (sFindCriteria != "" && sFindCriteria.substr(0, 1) != "*") sFindCriteria = "*" + sFindCriteria;findCriteria.value=sFindCriteria;
    

  6. 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆