简体   繁体   English

dynamics crm在关联的视图上获取子网格的名称

[英]dynamics crm get name of subgrid on associated view

When I open the contact form and then select activities from the navigation bar, the associated activities view appears. 当我打开联系表单,然后从导航栏中选择活动时,将出现关联的活动视图。 Is there a way to get the name of the subgrid for this view? 有没有办法为该视图获取子网格的名称? I 一世

var subgrid = Xrm.Page.getControl(<sub-grid name>);

Note: This is unsupported customization. 注意:这是不受支持的自定义。

Getting Associated view grid is different from subgrid in entity forms. 获取关联视图网格与实体表单中的子网格不同。 Subgrid in CRM form is accessible using Xrm.Page.getControl(subgrid_name) like any other control. 可以像其他任何控件一样,使用Xrm.Page.getControl(subgrid_name)访问CRM格式的Xrm.Page.getControl(subgrid_name)

But to access Associated view grid, you have to do DOM manipulation starting from IFRAME, then Grid like below. 但是要访问关联的视图网格,您必须从IFRAME开始进行DOM操作,然后再进行如下所示的Grid操作。

To get the IFrame control: 要获取IFrame控件,请执行以下操作:

var frame = document.frames[“areaActivitiesFrame”].frameElement;

To refresh the associated grid view: 要刷新关联的网格视图:

frame.contentWindow.document.getElementById(“crmGrid_Account_ActivityPointers”).control.refresh();

Once you get the control, try to override the click event like explained in SO thread 获得控件后,尝试覆盖SO事件中所述的click事件

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Dynamics CRM 2011获取子网格选定的单元格值 - Dynamics crm 2011 get subgrid selected cell value 动态CRM。 在subgrid中完全自定义FetchXml - Dynamics CRM. Fully custom FetchXml in subgrid 如何以Dynamics CRM形式调整子网格的高度? - How to resize the height of the subgrid in dynamics crm forms? CRM iFrame关联的视图记录计数MS Dynamics - CRM iFrame associated view record count MS Dynamics 如何使用JavaScript在Dynamics CRM的子网格中获取活动列表? - How can i get the active list in a subgrid in Dynamics CRM using javascript? CRM 2011-在关联的视图或子网格中单击自己的记录链接时出现奇怪的行为表单 - CRM 2011 - Weird behavior form when clicking on own record link in an associated view or subgrid 将工具提示添加到Dynamics 365中子网格中的列名称 - Add tooltip to column name in a subgrid in Dynamics 365 在 Dynamics 365 CRM 统一界面中重新加载/刷新子网格时重新加载表单 - Reload Form on reload/refresh of subgrid in Dynamics 365 CRM Unified Interface 根据条件禁用 Dynamics CRM 可编辑子网格中的列 - Disable column in Dynamics CRM editable subgrid based on a condition MS Dynamics CRM 2013子网格与其添加按钮重叠 - Ms dynamics crm 2013 subgrid overlap with its add button
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM