简体   繁体   English

MS Dynamics CRM快速查找

[英]MS Dynamics CRM Quick Find

For example, I have an entity with field "description". 例如,我有一个带有“说明”字段的实体。 In the settings of this entity in "Add Find Columns" I checked field "description". 在“添加查找列”中该实体的设置中,我检查了“描述”字段。 "description" has follow text: "some words about entity". “描述”具有以下文本:“一些关于实体的词”。 when I type in Quick Find field text "some words" I get my entity, but when I type text "about entity" I get nothing. 当我在“快速查找”字段中键入文本“一些单词”时,我得到了我的实体,但是当我键入文本“关于实体”时,我却什么也没有。 This looks like search engine try to find entity with field "description" which BEGINS WITH "some words", but doesn't try to find which CONTAINS typed text. 这看起来像搜索引擎尝试查找带有“某些单词”开头的“描述”字段的实体,但没有尝试查找键入文本的CONTAINS。 How can I fix that? 我该如何解决?

Try adding a * before and after the search phrase. 尝试在搜索词组之前和之后添加*。

So search for: *about entity* 因此搜索: *about entity*

The * acts as a wildcard for any number of characters. *用作任意数量的字符的通配符。

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\\" 转到以下路径并找到“ stage.js”文件“ 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 在文本编辑器(例如EmEditor)中打开“ stage.js”

  4. Find the following line of code: sFindCriteria=Trim(findCriteria.value.replace(/[*]+/,"*"));findCriteria.value=sFindCriteria; 找到以下代码行: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; 现在将其更改为: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 保存文件,然后尝试快速查找以查看更改

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM