Which embed to use for hand-coded formulas in a report

Applies to: posted in 2012 on comp.lang.clarion; no version number in the text. One reply refers to RPM.

Problem

A developer needed to hand code the formulas for a report and asked which embed replaces "Before Print Detail".

Solution

  1. Use the TakeRecord embed, After Parent call. The poster thanked the answerer for this one.
  2. If the report uses RPM, it has a "Before printing details" embed. The poster replied that he thought he owned a copy.
  3. Let the IDE write a fake formula in the report formulas. There are various embeds, depending on what you want to do. Search the source for where the dummy formula was inserted and put your hand-coded formula there. Delete the dummy formula when done.

Caveats

  • The thread does not say which option the poster used.
  • Option 3 depends on the generated source, so the dummy formula must be removed afterwards or both will run.
  • Option 2 is for a third-party product and applies only if you use it.

Today (2026)

TakeRecord is a standard ABC report embed and is likely still the place, but this was not re-tested on a current build.

Sources: Loren L. (Apr 2012, the question), Steve P. (Apr 2012), Lee W. (Apr 2012), Abe J. (Apr 2012) in comp.lang.clarion.