For passing custom attribute values as parameter to the navBarItem on an Entity, we could use the following similar JavaScript
// get the id of navbaritem using IE Dev tool
var navBarItem = document.all.navBarItemID;
// get the value of the field to pass as parameter
var fname=crmForm.all.firstname.DataValue;
// if it is not null than attach a function that uses openIsvWin function of CRM
// there you could pass your parameters for the url
if (navBarItem != null) {
navBarItem .onclick = function() {
openIsvWin(‘http://localhost/default.aspx?fname=’+fname, false, -1, ”);
}
}
http://www.eggheadcafe.com/software/aspnet/29468928/navbaritem-url-property.aspx
Bye..
Discover more from Nishant Rana's Weblog
Subscribe to get the latest posts sent to your email.
