function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
briguybbbriguybb 

Count Related List Items

I would like to build a custom field for any object that counts the number of related list items. 
 
For example
1.  Number of Contacts an Account
2.  Number of related Cases for a Solution
 
It does not appear that a custom formula field will solve this form me.  Can anyone point me in the direction of some instructions for an Scontrol or any other method it would be greatly appreciated.
 
 
 
Execute EZSAASExecute EZSAAS

Write an S-control - type=HTML,   which performs all your calculations on the load of this and prints/returns # of related items, i.e <body onload="youFn()"

Next, add this to the page laout of required parent, i.e Account or Solution for you.

 Contact me if you need sample code at go.saas@yahoo.com 

 

briguybbbriguybb

Thanks for replying to my posting.  It would be greatly appreciated if you could send over some sample code that I can take a look at. 

My email address is tanbriang@gmail.com

Brian Tan