I have a form with an single category embedded View. One of the columns in the embedded view contains a currency field. On the main form I wish to have a computed field that will contain the total of the currency colum. Is there an easy way of doing this ?
I don;t think there is an easy way - you would need to loop through all the documents and total up the values to display on the main form
You could always show the total on the embedded view, but I assume you need the total in a field on the main form so that you can use it in a calculation?
You can add two computed fields, one multivalue field and another Number field. Use DBColumn to get all the currency values into the multivalue field. Sum up these values in the other field. You can hide the multivalue field, if you want so that the total will be displayed as per your requirement.