[英]ms crm 2011 set fetchxml on subgrid control on Dashboard via ribbon button js
I am trying to pass custom fetchxml to a sub grid on a new dashboard I created. 我试图将自定义fetchxml传递给我创建的新仪表板上的子网格。 The problem is the dashboard does not use the name I specified in design mode to uniquely identify the grid. 问题是仪表板没有使用我在设计模式下指定的名称来唯一标识网格。
The code I have that works on sub grids on standard entity forms 我拥有的代码可用于标准实体表单上的子网格
var subGrid = document.getElementById("mygrid");
subGrid.control.SetParameter("fetchXml", fetchxml);
subGrid.control.refresh();
I have tried to identify the grid by looking at the html mark up. 我试图通过查看html标记来标识网格。 I am able to get the control from this id which appears to be grid 我可以从似乎是网格的此ID获取控件
document.getElementById('Component7784664_span').control
However, it does not have the 'SetParameter' or 'refresh' method. 但是,它没有“ SetParameter”或“ refresh”方法。
Any help appreciated. 任何帮助表示赞赏。
thanks 谢谢
事实证明页面已被缓存,在清除缓存并刷新页面后,可以使用分配的ID找到网格。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.