Tech Tip
Preview ... NEW in UnForm 7.1:
findpos(
)
codeblock function
Two new codeblock functions in UnForm 7.1 make the process
of detecting region boundaries easier than in previous versions. Easier meaning
fewer and more simplified lines of codeblock logic.
This introduction of the new
findpos()codeblock function gives you the
basics and shows a very simple example.
In our experience designing custom rulesets we have come across a number of
projects that involve a variable number of logical regions requiring a box
around them. The most common example we've seen is a manufacturing work order or
bill of materials with both material pick requirements as well as detailed labor
operations, often several to many pages long.
The codeblock logic required to properly format such
documents has in the past been relatively "cumbersome".
The two new codeblock functions
findpos()and
finddata()should greatly simplify both the conceptualization as well as the code involved
in providing for these types of form design scenarios.
Of the two,
findpos()is discussed below
....
The text input stream:
The ruleset that processes the text stream:
The resulting enhanced page, shows two dynamically boxed regions produced by a
single ruleset cbox command embedded in a codeblock exec ( ) function, based on
the detection of region corner tags in the text stream.
This is the section of the unform71.pdf manual that documents how it works. Note
that the page number in this snapshot is subject to change.
" cool, huh? "
|