
Question: In SalesLogix I have code to hide/show items from the toolbar based on user teams:
User user = (_userService as SLXUserService).GetUser();
if (user.Id.ToLower().Trim() == “admin”) return;
if (!IsOnTeam(“Midwest”, user))
{
ToolbarWorkspace toolbar = _parentWorkItem.Workspaces[“
IMenuService menusvc = toolbar.WorkItem.Services.Get(
NavItemCollection navcol = menusvc.FindMenu(“mnuTools”) as NavItemCollection;
if (navcol != null)
{
navcol.RemoveItem(“tools_
}
}
I’m not able to see the Groups dropdown while debugging the code. How can I hide the Groups drop down?
Answer: Take a look at the HTML objects and you’ll see that the menu is on a
division called “GroupMenuSpace”. Use javascript to hide it:GroupMenuSpace’);
obj.style.display = ‘none’;
division called “GroupMenuSpace”. Use javascript to hide it:
var obj = document.getElementById(‘
obj.style.display = ‘none’;
Subscribe To Our Newsletter
Join our mailing list to receive the latest Infor CRM (Saleslogix) and Creatio (bpm'online) news and product updates!
You have Successfully Subscribed!