Показать сообщение отдельно
Старый 07.01.2019, 16:12   #1  
Blog bot is offline
Blog bot
Участник
 
25,475 / 846 (79) +++++++
Регистрация: 28.10.2006
Afna CRM: Open CRM Report with Javascript
Источник: http://a-crm.blogspot.com/2019/01/op...avascript.html
==============

To run a specific report against selected items with Javascript, use the code below.
Create a button in a ribbon and pass the following parameters: SelectedControl, SelectedControlItemIds, SelectedEntityTypeName

Beware that this is totally unsupported way of doing a this.

function openReport(gridControl, recordIds, selectedEntityType)
{
var reportId = "{reportGuid}";
var filterTable = true;
var reportType = 1;
var fileName = ".rdl"

Mscrm.RunReportFromGrid.$j(gridControl, recordIds, filterTable, reportId, reportType, fileName);
}

Источник: http://a-crm.blogspot.com/2019/01/op...avascript.html
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.