问题
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.
回答1:
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
回答2:
Non code fix:
Go into views for the entity that has problems, select Quick find view, select "Add Find Columns", select fields that need to be added to work with the wild card search, click ok, select "Add View Columns" and select columns added to "Add Find Columns", click ok, then save and close. Last publish your entity
来源:https://stackoverflow.com/questions/21405693/in-dynamics-crm-how-do-i-enable-wildcard-search-by-default-in-quick-find