[英]setSrc for IFRAME in Dynamics CRM unified form is not working
I am following below walkthrough by J. Lattimar to add Documents navigation in CRM form tab. 我在下面按照J. Lattimar的演练在“ CRM表单”选项卡中添加“文档”导航。 It was working fine in classical forms, but for unified forms the steps are not working and instead throw exception like An Error as has occurred.
它在经典形式下工作正常,但对于统一形式,步骤不起作用,而是引发异常(如发生的错误)。 Any idea how to get this working?
任何想法如何使它工作?
https://jlattimer.blogspot.com/2017/01/show-sharepoint-documents-on-main-form.html https://jlattimer.blogspot.com/2017/01/show-sharepoint-documents-on-main-form.html
Xrm.Page is deprecated, so you'll need to update this JS. Xrm.Page已过时,因此您需要更新此JS。 Start here:
从这里开始:
https://docs.microsoft.com/en-us/dynamics365/get-started/whats-new/customer-engagement/important-changes-coming https://docs.microsoft.com/zh-cn/dynamics365/get-started/whats-new/customer-engagement/important-changes-coming
First of all, this is unsupported approach we are following, author clearly called it out. 首先,这是我们遵循的不受支持的方法,作者明确指出。
In UCI why it broke - someone did investigation already 在UCI中为何会失败- 有人已经调查过
Replacing
Xrm.Page.context.getQueryStringParameters().etc
with "10069" ended up resolving this and currently works within UCI and Classic interfaces.将
Xrm.Page.context.getQueryStringParameters().etc
替换为“ 10069”最终解决了该问题,目前可在UCI和Classic接口中使用。
Actually couple of things to take care. 实际上要注意几件事。
Like Hoffma said - Xrm.Page
is deprecated, you have to rewrite the code to refer formContext
from executionContext
就像Hoffma说-
Xrm.Page
已过时,你必须重写代码来引用formContext
从executionContext
Xrm.Page.context.getQueryStringParameters()
is not containing the etc
now, that's why breaking in UCI. Xrm.Page.context.getQueryStringParameters()
现在不包含etc
,这就是在UCI中中断的原因。 You can supply the entity type code (etc) in the url manually 您可以在url中手动提供实体类型代码(等)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.