我遇到的问题是CRM2013的快速创建表单不再打开。会发生什么是表单的标题部分出现(显示实体的名称和关闭图标),但没有其他任何事情发生。
无论我等多久,表格都无法打开。关闭此快速创建表单后,我从CRM收到错误消息:
“无法设置属性onRefreshFormSaveCallback”
在Developer Tools中,似乎从名为JsProvider.ashx的文件中抛出异常
这是完整转储:
Microsoft Dynamics CRM错误报告内容
<CrmScriptErrorReport>
<ReportVersion>1.0</ReportVersion>
<ScriptErrorDetails>
<Message>Uncaught TypeError: Cannot set property 'onRefreshFormSaveCallback' of undefined</Message>
<Line>10601</Line>
<URL>/_common/JsProvider.ashx?IsRefreshForm=true&ids=1759665639-1968334880-1039841082-1793205875-1314140682-1547461133-1992083491-1000289424-159335543-542820515-1946640899-1603536461-1264077421-374257838&ver=1052389390</URL>
<PageURL>/_forms/read/page.aspx?_CreateFromId=%7b152C481E-BF12-E411-80BF-00155D148504%7d&_CreateFromType=10007&_searchText=undefined&businessRulesVersion=1033&etc=10013&formts=474159&hidecommandbar=true&mdts=-14853627&setLastViewed=false&showglobalquickcreate=true&userts=130506518819432115</PageURL>
<Function>anonymousr:Cannotsetproperty'onRefreshFormSaveCallback'ofundefined</Function>
<CallStack>
<Function>anonymousr:Cannotsetproperty'onRefreshFormSaveCallback'ofundefined</Function>
</CallStack>
</ScriptErrorDetails>
<ClientInformation>
<BrowserUserAgent>Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36</BrowserUserAgent>
<BrowserLanguage>undefined</BrowserLanguage>
<SystemLanguage>undefined</SystemLanguage>
<UserLanguage>undefined</UserLanguage>
<ScreenResolution>1920x1080</ScreenResolution>
<ClientName>Web</ClientName>
<ClientTime>2014-07-24T15:06:04</ClientTime>
</ClientInformation>
<ServerInformation>
<OrgLanguage>1033</OrgLanguage>
<OrgCulture>3081</OrgCulture>
<UserLanguage>1033</UserLanguage>
<UserCulture>3081</UserCulture>
<OrgID>{FDEC9D90-233C-443B-866F-57D7DA67A40E}</OrgID>
<UserID>{A2FAA665-0DE2-E311-80B8-00155DC8811F}</UserID>
<CRMVersion>6.0.2.51</CRMVersion>
</ServerInformation>
</CrmScriptErrorReport>
答案 0 :(得分:0)
找到解决方案 - 其他一位开发人员直接在字符串对象上创建了一个格式函数
String.format = function() {...}
这似乎在CRM 2013中搞砸了。一旦我删除了该声明,一切都恢复正常