In order to enable the context menus, you need to change the Global.js file.
- On the Microsoft CRM Web server, navigate to
\_common\scripts (typically C:\Inetpub\wwwroot\_common\scripts). - Open and Edit the Global.js file.
- Use your text editor’s Find feature to locate the document.oncontextmenu() function.
- Comment out the existing code in this function by adding /* and */ as shown in the following code. You can undo this change later by simply removing event.returnValue = true; line and the comment characters.
function document.oncontextmenu()
{
event.returnValue = true;
/*
var s = event.srcElement.tagName;
(!event.srcElement.disabled &&
(document.selection.createRange().text.length > 0 ||
s == “TEXTAREA” ||
s == “INPUT” && event.srcElement.type == “text”));
*/
} Notes :
- Backup your Global.js file so that you can restore your changes later on.
- Use this technique at development and not at production environment as this unsupported change might cause unpredictable behavior. Microsoft CRM prevents use of the right-click context menu for the user’s benefit and also to maintain a predictable navigation structure in the application interface.
No comments:
Post a Comment