This is great, but I wonder if there's a way to do it the other way around?
I have two databases:
database1 - EMS calls; each call shows my partner's name; currently has about 3,000 records, linked (many to many) to
database2 - Partner names, a few dozen
When I pull up Partner database, at the bottom I see the link to EMS calls, and a list showing each call I've worked with that partner. I'd like to show a separate field, Count, with the number of calls in that list.
I've tried a simple javascript field in Partner: field("EMS calls").length;
It always returns the number 25, for each partner. Very confusing.
I've tried to brute-force it by accessing libByName("EMS calls") and counting every call where that partner name appears, but libByName seems to be deprecated.
Anyone have any suggestions?
Thanks!