I want to add a field to list and detail view of an Account displaying the number of the Contacts. I wonder if I can use calculated field for that purpose? I don't see any sort of COUNT function though.
Announcement
Collapse
No announcement yet.
Use COUNT with calculated field
Collapse
X
-
Increment field (number) by default you can only one in database, but Eblasoft has an extension (Number Pro), that you can use for several incremented numbers. Perhaps this would be a solution.
Espocrm, New field type named "Number Pro" Similar to Espocrm Number field (auto increment) but you can make it incremental in groups You can pull the prefix from a linked entity varchar field You can specify an int field on the linked entity to hold the counter indicator There is separator param, optional with pad length like in Number fieldUse CaseOn of the most use cases is the order and order items, so if the order has number field you can add number pro to the order item that prefixed by the number of the orderSo if Order number is: O-00046The Order item number will be: O-00046-0001 Read information about the extension . Release notes are available here.
-
is begining for your request
Comment
-
It's possible to utilize a left join with a sub-query. We did it in sales pack to calculate stock quantity in for a product. I believe it was already covered on the forum before.
Left-join and a select expression can be added in recordDefs > selectApplierClassNameList​
Comment
Comment