Quantcast
Channel: CRM Development forum
Viewing all articles
Browse latest Browse all 8223

CRM online 2016 getTotalRecordCount

$
0
0

Hi,

I would like to display the total number of rows in Contacts subgrid on Account form. My code is:

function recordcount()
{
    var TRC = Xrm.Page.getControl("accountcontactsgrid").getGrid().getTotalRecordCount();
    Xrm.Page.getAttribute("eg_recordcount").setValue(TRC)
}

But I am getting error:

TypeError: Unable to get property 'getGrid' of undefined or null reference at recordcount

Can somebody help.

Br


Viewing all articles
Browse latest Browse all 8223

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>