Script Helper
RPT-010 Members Test before use
Dependent age
Calculates a child dependent's age as of the effective date.
Reports & EDI › Report fieldReport/EDIIntermediate
Test before use. This script hasn't been tested by Catalyst Workflow yet. Run it in a non-production case first.
JScript.NET
1// Report field — Child age as of effective date
This script is for members
Members see the full code, the values to change and the cautions.
See membershipAlready a member? Sign inHow it works
Report records are plain values, not PersonViews, so age is computed manually: year difference minus one if the birthday hasn't happened yet.
Members also see 1 value to change and 0 cautions for this script.