15.01.2015, 15:11 | #1 |
Участник
|
mscrmblog: Manipulate the data returned by the CRM 2013 grid.
Источник: http://mscrmblog.net/2015/01/15/mani...crm-2013-grid/
============== Using a CRM plugin you can manipulate the data returned by CRM before the data is returned to the user in the grid/sub-grid. Some examples would be:
Get your entity collection: var results = (EntityCollection) context.OutputParameters["BusinessEntityCollection"]; You can run your own queries and add your own logic, then to set the column value for the grid use: entity.Attributes["ecs_emergencycontactphone"] = contact.GetAttributeValue("mobilephone");You will need to have a ‘dummy’ field on your entity to be used to display the data however this field will always be empty. The field will also need to exist in the view or in the columnset retrieval. This does not update the value in the database rather just a dynamic way of displaying data from another entity. Источник: http://mscrmblog.net/2015/01/15/mani...crm-2013-grid/
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору. |
|
|
|