Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

Introduction


English

Calculation Field allows you to perform a series of arithmetic computations to a set or a series of fields.

The Calculation Field is only available on Professional and Enterprise Edition.


Get Started

The easiest way to see how the Advanced Grid works is to use the existing built-in App Expenses Claims and look at an existing form in the app. Here are the steps:

...

NameDescription
ID

Element ID (By declaring as "total", a corresponding database table column "c_total" will be created)

Please see Form Element for more information about defining the ID and list of reserved IDs.

LabelElement Label to be displayed to end user.
Variables
NameDescription
Variable Name

Declare a name to store current row equation result.

Info
titleExamples
  • subtotal
  • discountPercent
  • charges
Field ID

Form Field ID to retrieve.

If you are totaling a form grid column, use this format: formGridId.columnId where the first part before the decimal tells Joget which form grid to use and the second part after the decimal tells Joget which column is the specified form grid to use for calculation.

Multivalue Operation
  • Sum
  • Avg
  • Min
  • Max
Equation

Arithmetic operation using the variables declared above.

Info
titleExample
  • subtotal - (subtotal * discountPercent / 100)
  • subtotal - discountAmount
  • subtotal - charges (Correct)
  • subtotal-charges (Wrong)
Info
titleImportant Notes
  • It is important to include spacing in between operators.
  • The position and spacing of all elements of an equation must be exactly as they are to appear in printed form.

...