Enabling the context menu in Microsoft CRM
When developing ISV solutions for Microsoft CRM, it can be helpful to see exactly what is going on behind the scenes. Unfortunately, the right-click context menu is turned off by default. That's where the helpful little context menu item "View Source" is located.
To turn on the context menus for CRM and then gain access to the HTML source of each page, simply do the following:
CRM 1.2
- Find the Global.js file in the _common\scripts directory under your wwwroot.
- Make a backup of the Global.js file for when you need to revert back to the original version.
- Open the Global.js file in Notepad or your favorite text editor.
- Scroll down until you find the "oncontextmenu()" function.
- Comment out the "event.returnValue = false;" line with two slashes (//).
- Save
CRM 3.0
- Find the Global.js file in the _common\scripts directory under your wwwroot.
- Make a backup of the Global.js file for when you need to revert back to the original version.
- Open the Global.js file in Notepad or your favorite text editor.
- Scroll down until you find the "oncontextmenu()" function.
- Comment out the
event.returnValue =
lines with two slashes at the start of each line (//).
(!event.srcElement.disabled &&
(document.selection.createRange().text.length > 0 ||
s == "TEXTAREA" ||
s == "INPUT" && event.srcElement.type == "text")); - Save

0 Comments:
Post a Comment
<< Home