Home > Commands > Tools > Report Writer > Templates: Form Field Reference

Templates: Form Field Reference

When authoring a Report Writer Template, you’ll need to insert Form Fields in the template document to refer to data items in the Report Writer (numbers, dates, and character strings). You might then choose to edit the Form Field's "field spec", for example, to calculate a derived value (negate the value, add two values together, take the maximum of two values, etc.).

This article documents the syntax of the field spec. The field spec, which specifies the table and other parameters, is entered into the Form Field's Help Text area. See Templates: Inserting Form Fields for instructions on how to insert fields and edit them manually.

The field spec can either be a single data item or an expression that derives a value from one or more data items.

 

Expressions

An expression consists of data items and operators. Data items in an expression are enclosed within double quotes ("). Operators include +, -, *, /, #min, and #max -- see Expression Operators for more.   

Examples: Meaning:
"ProVal_ValSet_Data, Val Set CY, Annuities_Inforce" - "ProVal_ValSet_Data, Val Set PY, Annuities_Inforce" Difference between the current and prior year's annuities inforce
-"ProVal_USMinPPA, Val Set CY, Tgt_NC" Negation of Target normal cost from the Minimum Contrib exhibit
 #IF "ProVal_ValSet_Data,Current Year,Market_Assets,C=Value">0 #THEN 'funded' #ELSE 'unfunded' #ENDIF Choose between the strings 'funded' and 'unfunded' based on the asset value. Note that strings appear in single quotes; double quotes are reserved for data items. Also, the Form Field's type in MS Word should be set to Regular text.

The syntax for individual data items is discussed below.

 

Data item syntax 

The field spec for a data item differs depending on which Access Table the data item is coming from. The idea in each case is to specify enough information to select one value from the table. For instance, the field spec 'ProVal_ValSet_Data, Val Set CY, Annuities_Inforce' means that the data comes from the ProVal_ValSet_Data table, using the runid associated with the DataSet Label "Val Set CY", and the table row where Name is 'Annuities_Inforce'. In this case, the default table column is 'Value'.

Each field spec consists of several parameters separated by commas. In every case, the table name is the first parameter. The order of the parameters is important. Optional parameters are shown in [brackets]. Upper and lower case letters, and spaces before and after the commas, are not significant.

As a helpful tip, while in the template document, it might be necessary to press the Alt + F9 keys to switch between Microsoft Word form field codes and their results.

ProVal Data: Valuation Sets

Syntax:

Table, DataSetLabel, Variable [, C=Column]

Examples: Meaning:
ProVal_ValSet_Data, Val Set CY, Annuities_Inforce Annuities Inforce from "Value" column from run with the label "Val Set CY"
ProVal_ValSet_Data, Val Set PY, Annuities_Inforce Same as above but for run with label "Val Set PY"
ProVal_ValSet_Data, Val Set PY, Annuities_Inforce, C=ActiveTot Same as above but from "ActiveTot" column
VS, Val Set PY, Annuities_Inforce, C=ActiveTot Same as above, using abbreviation for table name
ProVal_USMinPPA, Val Set CY, Tgt_NC Target normal cost from the Minimum Contrib exhibit

 

ProVal Data: Headcount & Benefits

Syntax:

Table, DataSetLabel, Basis, R=RowNum, C=ColNum

Example:

The field spec 'ProVal_Headcount_Benefits, Current Year, UC_AL, R=2, C=3' would select the value 32,724,785 from the Headcount & Benefits data shown below:

image/ebx_-659018789.gif

 

ProVal Data: Active Age/Service

Syntax:

Table, DataSetLabel, Age Breakpoints, Service Breakpoints, Show, R=RowNum, C=ColNum

* Do not use commas (e.g., “5,10,20,30”) in the Age and Service Breakpoints specifications; use spaces instead (e.g., "5 10 20 30").

Example:

The field spec 'ProVal_Active_Age_Service, Prior Year 1, From 20 to 65 step 5, 5 10 20 30, C AS TS, R=6, C=2' would select the value 166,704 from the Active Age/Service data shown below:

image/ebx_1867280258.gif

 

ProVal Data: Inactive Counts / Benefits

Syntax:

Table, DataSetLabel, Age Breakpoints, R=RowNum, C=ColNum

* Do not use commas (e.g., “5,10,20,30”) in the Age Breakpoints specification; use spaces instead (e.g., "5 10 20 30").

Example:

The field spec 'ProVal_Inactive_Counts_Benefits, Current Year, From 20 to 65 step 5, R=8, C=2' would select the value 7,741 from the Inactive Counts/Benefits data shown below:

image/ebx_1974764379.gif


ProVal Data: Assumptions

Syntax:

Table, DataSetLabel, Variable

Examples: Meaning:
ProVal_ValSet_Assumptions, Val Set CY, Cost_Method Cost method for the current year valuation set


ProVal Data: Assumption Tables

Syntax:

Table, DataSetLabel, Variable, R=RowNum, C=ColNum, S=SexIdentifier

Examples: Meaning:
ProVal_ValSet_AssumpTab1U, Val Set CY, Actuarial_Ret_Rates, R=2, C=3, S=NA Unisex rate from row 2, column 3 of Actuarial Retirement Rates from run with the label "Val Set CY"
ProVal_ValSet_AssumpTab2S, Val Set PY, Accounting_Trm_Rates, R=7, C=2, S=Male Male rate from row 7, column 2 of Accounting Termination Rates for run with label "Val Set PY"

Notes:

For tables that include a projection scale – only the base rates are displayed.

 

ProVal Data: Val Set Exhibits

Syntax:

Table, DataSetLabel, Variable

 

Examples: Meaning:
ProVal_USMinPPA, Val Set CY, Tgt_NC Target normal cost from the Minimum Contrib exhibit

 

ProVal Data: Val Set Exhibits (Schedule of Employer Contributions)

Note that this is an Exhibit but has special syntax requirements.

Syntax:

Table, DataSetLabel, Variable, Column

 

Examples: Meaning:
ProVal_ContSched, Prior Yr 1, Total_Excluding_CB, ContAmt Total contributions, excluding the credit balance, for the valuation set wit the “Prior Yr 1” label.

 

ProVal Data: Val Set Exhibits (Accounting Amortization Bases)

Note that this is an Exhibit but has special syntax requirements.

Syntax:

Table, DataSetLabel, Variable, Column

 

Examples: Meaning:
ProVal_AcctgBase, Current Year, Total_PSC, Amort_Charge Total prior service cost amortization charge for the valuation set with the ‘Current Year” label

 

ProVal Data: Forecasts

Syntax:

Table, DataSetLabel, Variable [, C=Column] [, Y=Year]

 

Examples: Meaning:
ProVal_DetProj_Data, DetProj Baseline, Annuities_Inforce Annuities Inforce from "Value" column for run labeled "DetProj Baseline"
DP, DetProj Baseline, Annuities_Inforce, Y=2 Same as above but for year 2 of the projection
DP, DetProj Baseline, Annuities_Inforce, Y=2, C=ActiveTot Same as above but from "ActiveTot" column

 

ProVal Data: Forecast Exhibits

Syntax:

Table, DataSetLabel, Variable, Year

 

Examples: Meaning:
ProVal_DetProj_DevActAssets, Baseline, Market_Value,2010 Market value of assets in 2010 for baseline forecast

 

ProVal Data: Gain / (Loss)

Syntax 1:

Table, DataSetLabel, Variable

Syntax 2:

Table, DataSetLabel, Variable, C=Column

 

Examples: Meaning:
ProVal_GainLoss_Summary, GL CY, LiabGainLoss Amount from "Value" column of table ProVal_GainLoss_Summary where RunID matches run with the label "GL CL"
ProVal_GainLoss_BySource, GL CY, GL_TotGainLoss Total gain/(loss) from "Value" column of table ProVal_GainLoss_BySource where RunID matches run with the label "GL CL"
ProVal_GainLoss_StatusRec, GL CY, NewEnt, Active Headcount for new entrants from the "Active" column

 

ProVal Data: Descriptive Statistics

Syntax:

Table, DataSetLabel, R=RowNum, C=ColNum [, T=TableNum]

 

Examples: Meaning:
DS, Age/Service, R=1, C=1 Value from row 1, column 1 and table 1 of the Descriptive Statistic labeled "Age/Service"
ProVal_DescStat, Age/Service, T=2, C=3, R=4 Note that R= C= T= may be specified in any order

 

Supplemental Data: Reconciliation of Market Value of Assets

Syntax:

Table, DataSetLabel, OutlineLevel

Examples: Meaning:
ProVal_Reconciliation_of_Market_Value_of_Assets, Current Year, (1)(b)(iv) The value in row (1)(b)(iv) for the valuation column corresponding to the label ‘Current Year’

 

Supplemental Data: Statement of Assets

Syntax:

Table, DataSetLabel, OutlineLevel

Examples: Meaning:
ProVal_Statement_of_Assets, Current Year, (1)(b)(iv) The value in row (1)(b)(iv) for the valuation column corresponding to the label ‘Current Year’

 

Supplemental Data: Asset Return Data

Syntax:

Table, Period, AssetClass, Variable

 

Examples: Meaning:
AR, 2007, S&P 500 Index, Return The return for the “S&P 500 Index” in the year 2007
PVRW_AssetReturn, 2007, S&P 500 Index, Mix The asset mix (i.e., percent of the total portfolio) for the “S&P 500 Index” in the year 2007
AR, Average, Market Value of Assets, Return The average return on the Market Value of Assets.

 

Supplemental Data: User Defined Data

Syntax:

Table, Category, Name

 

Examples: Meaning:
UD, Actuary, LastName The 'LastName' value in the 'Actuary' category.
PVRW_UserDefinedData, Client, Zip The 'Zip' value in the 'Client' category.