pinki
pinki

Reputation: 1418

Subgrid updation in crm 2011

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 count 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.

Upvotes: 1

Views: 1903

Answers (1)

SWalters
SWalters

Reputation: 3694

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.

Upvotes: 1

Related Questions