Quantcast
Channel: CRM Development forum
Viewing all articles
Browse latest Browse all 8223

CRM 2011 RC - Passing Parameter to Left Navigation Link in Details form (not in sitemap)

$
0
0

Hi,

I have a external application link to which I wanted to pass values from entity form controls.

I tried attaching onclick event inside form load but its not working.

Is there any other way to pass parameter to link url?

Appreciate your response.

Following is code which I tried

function FillTPIdInCustomNavLink(linkId) {debugger;var navLeftItem = document.getElementById(linkId);if (navLeftItem != null&& navLeftItem != undefined) 
  {if (Xrm.Page.data.entity.attributes.get('mbs_mssalestpid') != null) 
    {var tpid = Xrm.Page.data.entity.attributes.get('mbs_mssalestpid').getValue()if (tpid != '') 
      {var strOnclickValue = navLeftItem.attributes.onclick.value;if (strOnclickValue != null&& strOnclickValue != '') 
        {
          navLeftItem.onclick = function () { strOnclickValue.replace("-1", tpid); };
          alert(navLeftItem.attributes.onclick.value);
        }
      }
    }
  }
}

makeer

Viewing all articles
Browse latest Browse all 8223

Trending Articles