AXForum  
Вернуться   AXForum > Microsoft Dynamics CRM > Dynamics CRM: Blogs
All
Забыли пароль?
Зарегистрироваться Правила Справка Пользователи Сообщения за день Поиск

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 15.01.2015, 15:11   #1  
Blog bot is offline
Blog bot
Участник
 
25,643 / 848 (80) +++++++
Регистрация: 28.10.2006
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:
  • Deny the user access to specific data in a specific field based on a security role
  • Get data from a lookup record on a related entity and display it dynamically on the grid.
Create your new plugin class and register it on the RetrieveMultiple message, select your entity and keep the stage of execution as Post operation

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, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
crminthefield: Podcast and Overview: Microsoft Dynamics CRM 2011 Update Rollup 15 Blog bot Dynamics CRM: Blogs 1 10.02.2016 10:26
crminthefield: Podcast and Overview: Microsoft Dynamics CRM 2011 Update Rollup 17 Blog bot Dynamics CRM: Blogs 0 10.05.2014 06:30
crminthefield: Podcast and Overview: Microsoft Dynamics CRM 2013 Update Rollup 2 Blog bot Dynamics CRM: Blogs 0 15.04.2014 01:15
crminthefield: Podcast and Overview: Microsoft Dynamics CRM 2011 Update Rollup 16 Blog bot Dynamics CRM: Blogs 0 23.01.2014 03:15

Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.
Быстрый переход

Рейтинг@Mail.ru
Часовой пояс GMT +3, время: 23:05.