Sorry if this has been answered before, but I’m in a hurry, and 1/2 hour searching in help and forums didn’t solve my problem. Here it is :
Let’s say that I have a list of cities, as main documents. Each city has a few response docs containing ,let’s say, a house. Each house as a field named “Capacity” to store the number of people that can live in it.
Now, I want the parent document (city) to display the total capacity of the city, i.e the sum of all its houses capacities. This count should auto-referesh if a house is added or modified.
How can I do it ? In a embedded view, the response docs can’t be totaled. In a computed on display field ? but how ?
Subject: Display on parent doc the sum of values in a field in responses docs
Hello Francois,using “@getdocfield” and “@setfield” you can update a field in the parent doc from the response doc. So when a “house” respnse doc is created or changed you can update the total capacity in the city document.