Pages

Thursday 15 March 2012

How to access Network Path folder from CRM using Javascript

The following function is used to get Network folder in our computer from CRM application.

Here we have to give a Network address path in CRM page. The folder will open when we click on that link from CRM.

function OnLoad(){   
Transform("fieldname");
}
function Transform(fieldid){  
 var c = document.getElementById(fieldid);
   if (c == null)   
    return;
   c.style.textDecoration = "underline";
    c.style.color = "blue";
   c.style.cursor = "hand"; 
  c.ondblclick = function()    {
       window.open(Xrm.Page.getAttribute(fieldid).getValue()); 
  };
}