简体   繁体   English

CRM 2011-插入新记录或修改现有记录时捕获子网格的事件

[英]CRM 2011 - Catch events of subgrid when a new record is inserted or an existing record is modified

I have a subgrid in the CRM 2011 form. 我在CRM 2011表单中有一个子网格

While adding a new record to the subgrid, I want to catch the new record event, or while changing data inside any record, I want to catch it by event. 子网格中添加新记录时,我想捕获新记录事件,或者在任何记录中更改数据时 ,我想按事件捕获它。

I see that it is possible to catch the refresh event - but it occurs only if somebody is clicking on the refresh button or by deleting a record. 我看到可以捕获刷新事件-但仅当有人单击刷新按钮或删除记录时才会发生。

Why its event is not fired when adding a new record or when modifying an existing record? 为什么在添加新记录或修改现有记录时不触发其事件?

I see that the subgrid has events as follows: oninsertnewrecord, onrowupdated, but those events are not fired or cannot be overridden... 我看到该子网格具有以下事件:oninsertnewrecord,onrowupdated,但这些事件未触发或无法覆盖...

While adding a new record you can clone the Add new standard and call your own logic before call the native add. 在添加新记录时,您可以克隆“添加新标准”并在调用本机添加之前调用自己的逻辑。 While changing data you can bind a function to the subgrid onrefresh but this is not supported. 在更改数据时,您可以将函数绑定到子网格onrefresh,但是不支持此功能。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM