AlexGale
6 years agoQrew Captain
Use API_AddField to add a summary field
Hi,
I have a table called Categories, where each record is a different category. There are 20 or so Categories. These categories are used as reference fields on a child Projects table.
I have another table called Opportunities that's a parent of the Projects table. On the Opportunities table I've created a summary field for each Category. The summary fields count the number of Projects for each Category under the Opportunity.
My problem is that occasionally the category table will be updated, usually by adding a new category record. I don't want to have to constantly monitor this table and remember to add a new summary field to the Opportunities table whenever a category record is added.
Is there a way to use the API_AddField call to add a summary field to the Opportunities table whenever a Category record is added, which counts the number of Projects where the "Related Category" field is equal to the newly created Category record?
The documentation for API_AddField doesn't specifically mention summary fields so I don't have too much hope here, but I figure its worth asking around.
------------------------------
Thanks,
Alex
------------------------------
I have a table called Categories, where each record is a different category. There are 20 or so Categories. These categories are used as reference fields on a child Projects table.
I have another table called Opportunities that's a parent of the Projects table. On the Opportunities table I've created a summary field for each Category. The summary fields count the number of Projects for each Category under the Opportunity.
My problem is that occasionally the category table will be updated, usually by adding a new category record. I don't want to have to constantly monitor this table and remember to add a new summary field to the Opportunities table whenever a category record is added.
Is there a way to use the API_AddField call to add a summary field to the Opportunities table whenever a Category record is added, which counts the number of Projects where the "Related Category" field is equal to the newly created Category record?
The documentation for API_AddField doesn't specifically mention summary fields so I don't have too much hope here, but I figure its worth asking around.
------------------------------
Thanks,
Alex
------------------------------