Показать сообщение отдельно
Старый 08.01.2015, 09:14   #1  
Blog bot is offline
Blog bot
Участник
 
25,644 / 848 (80) +++++++
Регистрация: 28.10.2006
mscrmblog: Filtering a Grid in a CRM 2013 Dashboard based off another Grid’s selected row
Источник: http://mscrmblog.net/2015/01/08/filt...-selected-row/
==============

G’day Folks,

Had a requirement for a few grids on a new dashboard to be pre-filtered based off the selected row the main grid. My solution was to create a WebResource HTML page which looked at it’s parent window and set the click events on the Grid i wanted and within that click event i’d set the new FetchXml criteria to filter the second grid.

Example:

Entities

Client Entity – N:1 Outlet

Create a HTML webresource with the following:

Note:

Replace “OutletsGrid” with Grid 1 Component Name

Replace “ClientGrid” with the Grid 2 Component Name

I have a base fetchxml  (which you need to fill in) if you want to show all data before you click on any row in Grid 1

Add the Webresource to the Dashboard and Publish





My Outlet Clients Grid (Grid 2) should now filter based on the Selected Outlet (Grid 1)







Источник: http://mscrmblog.net/2015/01/08/filt...-selected-row/
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.