开发者

Subgrid updation in crm 2011

开发者 https://www.devze.com 2023-03-18 21:21 出处:网络
I am having a sub grid in the crm form 2011. When I add a new record, I want the count to be updated in the field i added in the header.

I am having a sub grid in the crm form 2011. When I add a new record, I want the count to be updated in the field i added in the header.

The problem is that when I add a new record I need to refresh the form otherwise, the cou开发者_StackOverflow社区nt will not take the newly added record into consideration.

Is there any way I can refresh the grid soon after I add a record the count gets updated?

I use Jscript to count the records.


Assuming your JScript to count the subgrid's records exists in the parent form, it sounds like what you need to do is ensure this code is fired when the contents of the subgrid change.

There's an example of how to do this here - what you need to do is attach an event handler to the subgrid's refresh event. So, when the subgrid refreshes, your handler (in the parent form) is called, and can re-count the records at that time.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号