覆盖 CRM 2013 网格中的默认行为

Override default behaviour in CRM 2013 grid

我需要能够在 CRM 2013 中将实体打开到新 window,而不是使用当前 window 中打开的默认行为。这是因为单击后退按钮会删除数据网格上的过滤器和排序,您必须重新开始。

我见过这种方法 Override standard method called by double click event in CRM grid.,但它在 CRM 2013 中似乎不起作用(要么是那样,要么是我弄错了网格名称)。

它不一定是受支持的解决方案,只需满足我的需要即可,即双击网格时在新 window 中打开一条记录。

不支持: 将 _static/_common/scripts/main.js 中的第 507 行更改为以下代码会导致记录弹出。这在实体表单中使用相同的弹出功能。

//rollup2 - line 507 after beautification 
//Update: rollup3 - line 566 after beautification 
if (this.get_contentUrl().get_pageType() == "entityrecord")
     popOutSourceUrl($v_0); //taken from globl.ashx line 12027
else
     this._3.get_currentIFrame().contentWindow.location.replace($v_0);