简体   繁体   中英

Display related information in Dynamics CRM 2011 Form

I have a Microsoft Dynamics CRM 2011 solution containing a pick list for selecting a person.

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.

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. 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. 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.

Sample: Create, Retrieve, Update and Delete Using the REST Endpoint with JavaScript

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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