How to use a table column total in a calculation
Use a table column total in a calculation
When designing a web form with a table that contains a total row, you may want to use the value in the column total row for a calculation elsewhere on the form. The total row does not have an ID separate from the table in table properties, so you need to locate the ID attribute in the HTML.
- Add a table control to the form and configure it so that it has a column total row.
- Click Web Preview to preview the web form.
-
In your browser, right-click the table column total row, and select Inspect.
-
In the Elements window, locate the ID attribute on the <td> element for the column total.
Note: IDs are of the form Table#_X_ColumnTotal where Table# is the ID used by the Table and X is the column corresponding to the desired total, starting with A, B, C... - In the Forms Designer, add a calculation control to the form, then click Configure.
-
Build the equation for the calculation field using the ID attribute above for the column total.
- Click Save.