Microsoft CRM 3.0 - Hide Links in Left Navigation - Example Code

By M&S Consulting (Ashok) on Apr 21st, 2008
Filed Under Technical Tips // Tags: ,

Here is an example of code to get stripped down contact and account forms. This code is placed in the onLoad event of the respective forms. Note: this is not supported, but a common way to hide left navigation links on specific entities (since normal site map customization does not affect these). The other method we typically employ is to remove access from many users to some functions they will not touch (like Cases if an organization is not taking advantage of the Services components). However, this is a fail-safe way in cases where permissions do not control access or if a new group/permissions are issued and someone accidentally gets to see certain links the organization has already decided not to use.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/////////////////////////////////////////////////////////////////////
// Hide areas within navigation
var navQuotes;
var navOrders;
var navInvoices;
var navService;
var navContracts;
var navListsInSFA;
var navCampaignsInSFA;
var nav_NA_SFA;
var nav_NA_CS;
var nav_NA_MA;
 
navQuotes = document.all.navQuotes;
navOrders = document.all.navOrders;
navInvoices = document.all.navInvoices;
navService = document.all.navService;
navContracts = document.all.navContracts;
navListsInSFA = document.all.navListsInSFA;
navCampaignsInSFA = document.all.navCampaignsInSFA;
nav_NA_SFA = document.all._NA_SFA;
nav_NA_CS = document.all._NA_CS;
nav_NA_MA = document.all._NA_MA;
 
if (navInvoices != null) { navInvoices.style.display = “none”; }
if (navOrders != null) { navOrders.style.display = “none”; }
if (navQuotes != null) { navQuotes.style.display = “none”;}
if (navService != null) { navService.style.display = “none”;}
if (navContracts != null) { navContracts.style.display = “none”;}
if (navListsInSFA != null) { navListsInSFA.style.display = “none”;}
if (navCampaignsInSFA != null) { navCampaignsInSFA.style.display = “none”;}
if (nav_NA_SFA != null) { nav_NA_SFA.style.display = “none”;}
if (nav_NA_CS != null) { nav_NA_CS.style.display = “none”;}
if (nav_NA_MA != null) { nav_NA_MA.style.display = “none”;}
else {
alert(”Navigation not found”);
}
Bookmark and Share

Related Information:

  1. Oracle APEX Tutorial 8 - Up and Downloading Files - Part 2 - Video Training
    Reports and data entry constitue the bulk of what most of these tutorials cover, and what many businesses need. However,...

Leave a Reply


Archives

Recent Comments

  • Kavitha Muniraj said: Hi, Could you please send a script which checks the status of forms and reports of oracle...
  • Siddharth said: Hey thanks a lot !! Have been lookin all over for this :) My PC may not be able t handle FlashBuilder...
  • Cyrex said: Hey man why I cant install Apex 4? is there anyone can help me.,?
  • sharanabasava said: ALTER TABLE [my_table_name] RENAME COLUMN [current_column_name] TO [new_column_name]; Sir,I...
  • Huub Vankan said: Thanks for this easy solution. Indeed strange that is does not work in the (x86) folder….

Calendar

July 2010
M T W T F S S
« Jun    
 1234
567891011
12131415161718
19202122232425
262728293031  

Featured Testimonial

"M&S has taken 'partnership' to a new level. They are not only a deeply skilled service provider, the M&S team is actually a mission critical component to our operations, taking on new initiatives as well as maintaining custom, open source, and COTS solutions."

CEO, MedPivot

Free SQL Service