Moving a Left Hand Nav item to a TAB in CRM 4.0

by Bill Owens 19. July 2008 00:03
First you need to get the ID of the left hand Nav item you want to move. I used IE Develpoer Tool Bar. Or the naming is very straight forward. In this Case I created 2 custom entities. Price002 and Price003. Now the names look better on my screen but it keeps it easy to understand. The parent entity is Price002 and I have a related entity showing up on the left hand nav called Price003. If you did not modify any of the items on the relationship the ID should be nav_new_new_price002_new_price003. I know it looks wierd but when you create the relationship between two "new" custom entities you get new_[entity1]_[entity2].
Now that we have that I created a iframe and called it pa.
Now add the following to your on page load event.

var nav_new_new_price002_new_price003;
nav_new_new_price002_new_price003= document.all.nav_new_new_price002_new_price003;

if (nav_new_new_price002_new_price003!= null)
{
nav_new_new_price002_new_price003.style.display="none"
a = "/"+ORG_UNIQUE_NAME + "/userdefined/areas.aspx?oId=" + crmForm.ObjectId + "&oType="+crmForm.ObjectTypeCode +"&security="+document.crmFormSubmit.crmFormSubmitSecurity.value+"&tabSet=new_new_price002_new_price003";
if (crmForm.FormType == 2 || crmForm.FormType == 3 || crmForm.FormType == 4)
{
document.all.IFRAME_pa.src=a;
}
}

Tags: , ,

CRM 4.0

Page List

About the author

I work for a consulting firm in Dublin Ohio called Affiliated Resource Group. For the last five years I have been spearheading our Microsoft Dynamics CRM practice. I have a deep appreciation for the Microsoft CRM platform and I am very excited about it. You might even describe me as a Microsoft CRM Advocate. I have many battle scars from my experience with the product and I’m constantly being asked questions about CRM and how-to-do something in it. Hence, this BLOG is to help disseminate that knowledge and information to everyone. As of last year I was posting links to many other blogs to help spread the knowledge, but now with the community.dynamics.com doing that for me, I will be following that practice unless a really juicy article catches my eye. Many people have asked where my post are for the first half of 2010, my company had me posting to another blog and maintain two was near impossible. I am now down to just this blog. So good luck and I hope that this blog may help in some way. If you have suggestions or questions, please email me them.

Disclaimer
The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

© Copyright 2012 BillOnCRM