You are here: Section Rules Reference > Section Rules Summary > SetRecipFromImage

SetRecipFromImage

Use this section level rule to conditionally add sections to the current form set based on conditions in the SETRCPTB.DAT file. You set up parameters which instruct the rule to generate a new set of keys (Key1, Key2, and TranID).

A new set of items from the current SETRCPTB.DAT file is generated and those items are run through the RunSetRcp feature to generate a temporary form set. This temporary form set is merged with the current form set to create the final form set.

Note With version 11.3, Documaker Studio lets you create subforms. Using subforms you can include forms within forms which eliminates the need to use the SetRecipFromImage rule. This simplifies triggering and populating data on sections when you are processing repeating patterns of hierarchical or nested data. Previously, you had to use the SetRecipFromImage rule, the sub extract rules, and overflow symbols to achieve the same result.

Syntax

SetRecipFromImage (Key1,Key2,TranID,AtEnd)

Parameter

Description

Key1

Value

Key2

Value

TranID

Value to set new key values

AtEnd

If you set this parameter to True, the system adds the forms in the order you listed in your FORM.DAT file. The default is False, which tells the system to load the form backwards from the way it is referenced in the FORM.DAT file.

The string $(Key1) within value equals the current transaction’s Key1 value. $(Key2) equals the current transaction’s Key2 value. $(TranID) equals the current transaction ID.

See also