There are times that we want the lookup filter to be disabled
and display only the view that we want the customer to see. This is possible by
creating a custom view and using the in-built functionality of CRM look up
filter to the view picker.
If you want to do this in java script how would you go on
about it? Is there a way?
There are couple of java scripts that you can write. However some of them won’t work with some of the Update roll ups in CRM 2011. Here I have listed some of them below.
Xrm.Page.ui.controls.get("lookupname").$0_3._element.disableViewPicker
= 1;
This works with UR 6, but doesn’t work with UR 8.
document.getElementById("lookupname").disableViewPicker
= 1;
The above seems to be a safe bet as it works with UR 6 and 8
both.
Some of the interesting articles that I have read about this
are given below.
http://juicysnippets.blogspot.ca/2011/08/disabling-lookup-view-picker-via.html
http://javascripterrors.blogspot.ca/2011/07/crm-2011-filter-views-using-java-script.html
http://social.microsoft.com/Forums/br/crmdevelopment/thread/5bb3c555-5fc0-4770-b56c-d3ded77cfe76
http://social.microsoft.com/Forums/en/crmdevelopment/thread/c36f4be5-9a26-4c04-9046-92d6f47b8e7a
http://juicysnippets.blogspot.ca/2011/08/disabling-lookup-view-picker-via.html
http://javascripterrors.blogspot.ca/2011/07/crm-2011-filter-views-using-java-script.html
http://social.microsoft.com/Forums/br/crmdevelopment/thread/5bb3c555-5fc0-4770-b56c-d3ded77cfe76
http://social.microsoft.com/Forums/en/crmdevelopment/thread/c36f4be5-9a26-4c04-9046-92d6f47b8e7a
No comments:
Post a Comment