Module_FieldRefParms

Type: Module Parent Module: N/A

Change all Field Reference parameters that set initial values in their parameter definition to use an explicit calculate command to set the value, since using initial value with field reference parameters doesn't work in Omnis Studio. This module extracts the initial value from the parameter variable definition and inserts a new line of code at the beginning of the method that calculates the value into the variable.

Functionality

Process all parameters in all methods that have a data type of Field Reference and have an initial value set.

  1. If the parameter initial value "$objinitval" contains "#???" then it is probably because it contains a reference to another variable so in that case recover the initial value from the O7Analyzer file fInitVals.
  2. Locate the first non-comment line at the start of the method containing the parameters.
  3. Insert Calculate commands at the start of the method to set the parameters to required initial values.

Assumptions

None.

User Setup Required for this Module

None.