简体   繁体   English

在Dynamics CRM 2011表单中显示相关信息

[英]Display related information in Dynamics CRM 2011 Form

I have a Microsoft Dynamics CRM 2011 solution containing a pick list for selecting a person. 我有一个Microsoft Dynamics CRM 2011解决方案,其中包含用于选择人的选择列表。

I am trying to determine how I could display a summary of this person's information at the top of the form dynamically when the person is selected. 我试图确定当选择此人时如何动态地在表单顶部显示此人的信息摘要。

I have already set up a javascript library that is triggered 'onchange' by selecting a new person, however I have been unable to determine the best way to add the summary information (eg, name, address, phone..) to the top of the form. 我已经建立了一个通过选择一个新人而触发“ onchange”的javascript库,但是我无法确定将摘要信息(例如姓名,地址,电话等)添加到顶部的最佳方法。表格。

Any suggestions would be much appreciated! 我们欢迎所有的建议!

One option is to call the REST endpoint from your OnChange method and retrieve the additional details and populate them into new fields. 一种选择是从OnChange方法调用REST端点,并检索其他详细信息并将其填充到新字段中。 Normally instead of a drop down, a lookup field might be a better option, this way you would have access the user id which you would need when getting the additional details, without it you would likely need to make another query to find it or have the values hard coded. 通常,不是下拉列表,而是查找字段可能是一个更好的选择,这样,您将可以访问获取其他详细信息时所需的用户ID,否则,您可能需要进行另一个查询才能找到它或拥有硬编码的值。 You could also look as using a JavaScript inside a web resource that is embedded in the form, the additional details could be displayed in standard HTML elements without having to create additional CRM fields. 您还可以看起来像是在表单中嵌入的Web资源中使用JavaScript,其他细节可以显示在标准HTML元素中,而无需创建其他CRM字段。

Sample: Create, Retrieve, Update and Delete Using the REST Endpoint with JavaScript 样本:使用REST端点和JavaScript创建,检索,更新和删除

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM