About Table CalculationsDepending on how you define the pagination setting, calculations are given per page, or for all items in the table. The calculation section header shows a count of the number of objects displayed on the page or in the table. You can use column values to show sum, average, maximum, minimum, median, and standard deviation values. You can apply one or more calculation types to each column. The results display at the bottom of the table.
If the column contains data for an attribute configured with a dimension, ENOVIA Business Process Services uses the normalized values (the values stored in the database) to perform and display the calculations. Table Item CountsAll configurable tables show a count of the number of objects used in the calculations in the calculation section header. For page calculations, it shows the number of items shown on the current page. If table pagination is off, then it shows the count of all objects across all pages. This clarifies the scope of the calculations displayed on the page. For example:
If pagination is on and you are looking at page 2, then the item count is displayed as Page (10 items). If pagination is off, then the item count is displayed as All (25 items) in the final calculation section. To enable page level calculations, set the property emxFramework.ShowPageCalculations to true in emxSystem.properties. This setting is false by default. Types of CalculationsAll configurable tables can provide calculations on columns within the table. This includes the sum of values or the average of all values in the column. You can also show the maximum, minimum, median, or standard deviation of the column. You can apply calculations to any column in the table that contains numeric-only data except for the first column, which typically contains the object name. To perform calculations on a column of string attributes that have numerical values, you must set format=numeric in the table column. The calculation is performed only for the displayed data. For example:
If pagination is on and you are looking at page 2, then the calculation is applied to objects 11 through 20 only. If pagination is off, then the calculation is applied to all objects (1 through 25). The following rules apply to page level calculations:
Final calculations use all the values for all pages. This section always displays if any calculation settings are enabled, and appear on the last page of the listing. The following example shows a page layout that includes several page level calculations. The following shows an example of both the page level calculations and the final calculations shown at the end of the table. Calculation SettingsYou can define the following settings for any numerical column in the table. Labels display in the first column of the listing that is not a checkbox, a radio button, or an icon image. The label column spans the remaining columns up to the first column that contains a calculation. The labels listed in the following table display by default with each of the calculation types.
Decimal PrecisionFor total, maximum and minimum table column calculations, the system does not round the value. Average, median and standard deviation calculations involve division of numbers so rounding is done when necessary. In emxSystem.properties, the property emxFramework.TableCalculations.DecimalPrecision defines how many digits follow the decimal point when rounding. By default, the calculated value is rounded to 5 digits after the decimal point if the result contains more than 5 digits after the decimal point. For example, if the calculated value is 25.1234562, then the value would be rounded to 25.12346. |