ModuleBReportFields

Type: Module Parent Module: N/A

If you copy a field to the clipboard in the OMNIS 7 window editor and then paste the field into the report editor, then the method associated with the field is copied to the report. When you convert the OMNIS 7 library to OMNIS Studio then that method is converted to a $print method, either associated with the original object or possibly another object on the report. The purpose of this module is too delete all $print methods belonging to report objects (fields and section markers) that have been created in this way. Since it was not possible to add a method to a report using the OMNIS 7 report editor all $print methods found will have been created in this way. Also this module fixes some issues with totalled fields where the $totalmode property of a field should be set in all sections and calculated fields that incorporate totalled fields in their calculations should use MyField.$total not just MyField as would have been the case in Omnis 7.3

Functionality

Only process report objects. Windows are not processed.

Process each field and section marker object on the report in turn.

  1. If the object has a $print method then delete it.
  2. Display a count of the number of $print methods deleted for each report class in the log.
  3. If an entry field has a $totalmode set then check that all other fields for the same dataname have the same totalmode.
  4. If an entry field located in a total or subtotal section is calculated and uses the value of a totalled field MyField in its calculation then change the reference to MyField.$total so that the built in accumulator is used, rather than the current CRB value of MyField.

Note that the character "B" in the name of this module is to cause it to be run second.

Assumptions

  1. None.

User Setup Required for this Module

  1. None.