Updates the FlowFields in a record.
|
[Ok :=] Record.CALCFIELDS(Field1, [Field2],...)
|
Parameters
- Field1, Field2,
…
-
Type: Field
The FlowFields that you want to update. Each field must be
defined as a FlowField and must belong to the same record
variable.
Property Value/Return Value
Remarks
Example
This example shows how to use the CALCFIELDS function
to find the balance on December 31, 2008 and the net change for a
customer in 2008.
This example requires that you create the following
variable.
Variable name |
DataType |
Subtype |
CustomerRec
|
Record
|
Customer
|
|
Copy Code |
CustomerRec.SETRANGE("Date Filter",010108D,123108D);
CustomerRec.CALCFIELDS(Balance, "Net Change");
|
The first line sets up a filter for the date filter
field in the customer record. This field is a FlowFilters
field which is used to calculate some of the FlowFields in the
customer record. In the second line, the FlowFields are
calculated.
See Also