Barkha Shukla

Barkha Shukla

  • NA
  • 16
  • 6k

When i run in Notepad++ its giving me error Xrm is undefined

Jan 29 2015 1:17 AM
function Page__onload() {
 }  
if( Xrm.Page.getAttribute("new_project").getValue()!=null)
{     
Xrm.Page.getAttribute("new_proj").setValue(Xrm.Page.getAttribute ("new_project").getValue()); 
}  
function ProjectNumber() 
{     
if( Xrm.Page.getAttribute("new_projectnumber").getValue()!=null) 
    {    
 Xrm.Page.getAttribute("new_projnum").setValue(Xrm.Page.getAttribute("new_projectnumber").getValue().toString());
}      
else
{      
   return error;    
}