We are doing a numnber of vlaidations on each row of the repeating group. Then we count errors for each row. At the top, we want to do a sum of the errors:
None of this is in the database, because it is a previous of pontential errors before running a workflow.
I looked into the orchestra and active cell plugins, but they don’t seem to help here. How can I do the sum of error counts from each row and display those in the top error card?
Now, each cell has one group per validation with a yes/no value per error. It validates the error as an expression returning yes/no and shows the text based on the yes/no value.
Then there’s a summary count of errors per cell as the sum errors yes/no formatted as numbers 1 or 0 repsectively.
Use the ‘RG Extractor’ plugin by mike@scheduler.ai, then place the Transmit element inside the RG and paste the ‘error preview count per section’ expression in its first field. After that, place the Receive element anywhere outside of the RG, and set its first dataType 1 field to ‘number’.
Now, you can pull the sum of errors from each cell by simply setting the following expression in a text element: ‘Receive A, column 1: sum.’