Support > Repository > A formula
ja | en

I will explain how to write expressions of arithmetic operations in Wagby.

Wagby allows you to specify arithmetic expressions between items.functionYou can also use.The computational accuracy is equivalent to Java's capability.

(1) Basic writing style
You can express it in the expression by putting the item ID in the place holder.
(2) Model reference
In the model reference item, there are "ID part" and "content part". In the automatic calculation formula, you can specify which part to use.
(3) Calculation expression example
We introduce examples of various automatic calculation formulas including calculation of age and required time.
(4) Prepare a calculation formula and editable items
Items for which formulas are set are read-only. By combining this with ordinary input items, we will explain how to prepare items that can be automatically calculated and edited.

Using scripts, you can write transaction processing. "Business logic> Cross-model calculation (transaction)Please read.