We get calls or emails frequently in UnForm technical support that deal with the
need for a dynamically constructed command -- one where one or several of the
command parameters is contained in a variable.
This Tech Tip shows the correct basic syntax to handle such situations.
The examples were put together using a single rule-set, which you can
download using this link:
Exec Tech Tip Rule File
Example
(Note: If you preview this in the design tool choose "Force Ruleset" in the
Preview options).
The first figure below is the rule-set, which shows the code corresponding with each
of the text items in the second figure labeled "Preview Results", which was generated by previewing the
rule-set in the UnForm design tool.
The text or narrative of each bullet item describes the issue being
addressed or demonstrated.
Code-blocks, like the prepage sections you see in figure 1,
are special command sections where a program scripting language is in
effect; outside of code-blocks the "standard" unForm command syntax is in
effect.
The exec() function allows the execution of a "Standard" unForm command from
inside a code-block, where looping and other programming constructs can help
when access is needed to dynamic data or computational results.