【发布时间】:2017-01-06 16:26:59
【问题描述】:
自从我们从 CRM 2011 升级到 CRM 2016 后,开始出现一些随机脚本错误消息, 主要在表单加载。我尝试正确地将所有依赖脚本包含在表单属性中,但仍然没有运气。我已经阅读了 Scott Durow 分享的非常好的文章CRM 2013 Script Loading Deep Dive。实施解决方法后,它显示脚本错误。我不想切换到旧版表单渲染。请提出一些我可以实施的建议。日志中的一些脚本错误是:
**TypeError: Cannot read property 'ParentProduct' of undefined
at eval (eval at RunHandlerInternal (192.168.220.55/.../ClientApiWrapper.aspx), <anonymous>:1:13)**
at RunHandlerInternal (192.168.220.55/.../ClientApiWrapper.aspx)
at RunHandlers (192.168.220.55/.../ClientApiWrapper.aspx)
at OnScriptTagLoaded (192.168.220.55/.../ClientApiWrapper.aspx)
at http://192.168.220.55/Dev/form/ClientApiWrapper.aspx?ver=191855143:201:1
**TypeError: Unable to get property 'executeOnLoad' of undefined or null reference
at eval code (eval code:1:1)**
at RunHandlerInternal (192.168.220.55/.../ClientApiWrapper.aspx)
at RunHandlers (192.168.220.55/.../ClientApiWrapper.aspx)
at OnScriptTagLoaded (192.168.220.55/.../ClientApiWrapper.aspx)
at Anonymous function (192.168.220.55/.../ClientApiWrapper.aspx)
执行 onLoad 的脚本是:
Sonoma.namespace("Utilities").namespace("ParentProduct").extend((function () {
function func1() {
}
function func2() {
}
)());
【问题讨论】:
标签: javascript customization dynamics-crm-2016