How do I filter the child records of the report Child File extension template?

Applies to: the report/process extension template "ReportChildFiles - Child file for process" found in a Clarion 5.5 install; posted in the Clarion 5.5 EE group.

Problem

The extension prints all child records of a parent, but not every child should print. The IDE and the template offer no obvious place for a filter.

Solution

  1. Put the filter on the child view. In the embed for the CF1:View object, before opening the view, set PROP:Filter:
CF1:View{Prop:Filter} = 'TRN:MemberNumber = MBR:MemberNumber AND TRN:Description <<> ''Payment'''
  1. Repeat the parent-to-child link in the filter expression (here TRN:MemberNumber = MBR:MemberNumber). Without it every parent gets all the children attached.
  2. Alternative that worked for the original poster: in the TakeRecord embed, replace the generated print lines for the child level with a version that has a condition around PRINT (for example IF ~CPT:Closed). The generated block was kept inside an OMIT so the original stayed readable, with the new code at priority 8000.

Caveats

  • A reply noted the template allows only one instance per procedure.
  • The view filter is the shorter route; the TakeRecord route edits generated print logic and has to be kept in step.
  • A reply recommended a third-party filter template; the thread did not settle whether it works with this extension.

Today (2026)

Likely unchanged for an app that still uses this extension. The ABC view-filter property is the same mechanism today. Not re-tested.

Sources: Greg B. (Jan 2003, the question), Earl C., Geoff B. (Jan 2003) in softvelocity.products.c55ee.