tag:blogger.com,1999:blog-2994561830614006850.post2657710663216924747..comments2023-10-07T10:10:51.961+02:00Comments on ExAMining MSCRM: Using generic functions – fieldnames- in CRM 2011Bertil Deuringhttp://www.blogger.com/profile/07808487284935919726noreply@blogger.comBlogger1125tag:blogger.com,1999:blog-2994561830614006850.post-52691932043780601872013-02-04T20:53:29.201+01:002013-02-04T20:53:29.201+01:00I tried this code and get the following error msg ...I tried this code and get the following error msg when I load the form. <br /><br />Error:the value of the property 'calcAddValues'is null or undefined. Not a function object. <br /><br />Below is your code that i changed. I'm sure the field names are correct.<br /><br /><br />function calcAddValues(estimatedvalue,new_esthwrev,new_estswrev,new_consultingrev) <br /><br />{ <br /><br />if((Xrm.Page.getAttribute(ew_esthwrev).getValue() != null)||<br /><br />(Xrm.Page.getAttribute(new_estswrev).getValue() != null)) <br /><br />(Xrm.Page.getAttribute(new_consultingrev).getValue() != null)) <br /><br />{ <br /><br />Xrm.Page.getAttribute(estimatedvalue).setValue(Xrm.Page.getAttribute(new_esthwrev).getValue() + Xrm.Page.getAttribute(new_consultingrev).getValue() + Xrm.Page.getAttribute(new_estswrev).getValue()); <br /><br />} <br /><br />else <br /><br />{ <br /><br />Xrm.Page.getAttribute(estimatedvalue).setValue(null); <br />} <br /><br />}Anonymousnoreply@blogger.com