SCalc

You can use the Scalc function to create, in columns and rows, custom formulas that use standard mathematical operators. Use this value within a row or column definition or within a cell override definition. The specified calculations are performed on the application server. The following example subtracts column 2 from column 1:

Scalc(col(1)-col(2))

You can also use this value to create text within the form.

Syntax

SCalc(<expression> [<operator> <expression>])

Note:

You can include multiple pairs of [<operator> <expression>] in an SCalc calculation.

Parameter

Description

operator

The mathematical operator for the calculation. These operators are supported:

+ - * /

expression

The values in the calculation. In addition to numeric values, you can include cell references, row references, column references, and various other types of items.

You can use these types of items in SCalc calculations:

An SCalc row or column can reference another SCalc row or column in its calculation, however you cannot forward reference in a SCalc row or column for another Scalc row or column. For example, this SCalc forward reference is allowed:

C1=A#Sales
C2=A#COGS
C3=SCalc(Col(1)-Col(2))
C4=SCalc(Col(3)/Col(1)*100)