Article ID: 189025
Article Last Modified on 10/31/2006
Employee Project Check John Doe 4578j John Doe 86785x John Doe 543p 1 Jane Doe 87x Jane Doe 89976m 1 Sam Smith 7897r Sam Smith 857t Sam Smith 78974x Sam Smith 7868p 1The main document should be set up as follows, with a copy of the conditional statements equal to the maximum number of projects for each employee (four in the earlier example).
Employee Project
{MERGEFIELD Employee} {MERGEFIELD Project}{set duplicate {if
{MERGEFIELD Check}="1" "off" "on"}}{nextif {mergefield check}=""}{if
{duplicate}="on" "P
t{MERGEFIELD Project}"}{set duplicate {if {MERGEFIELD Check}="1"
"off" "on"}}{nextif {mergefield check}=""}{if {duplicate}="on" "P
t{MERGEFIELD Project}"}{set duplicate {if {MERGEFIELD Check}="1"
"off" "on"}}{nextif {mergefield check}=""}{if {duplicate}="on" "P
t{MERGEFIELD Project}"}{set duplicate {if {MERGEFIELD Check}="1"
"off" "on"}}{nextif {mergefield check}=""}{if {duplicate}="on" "P
t{MERGEFIELD Project}"}
In this example, "P" represents a paragraph mark that would push the next
Project to a new line and "t" represents a tab character that would align
the next project under the previous project.
Employee Project
John Doe 4578j
86785x
5436435p
--- Page Break ---
Jane Doe 87x
89976m
--- Page Break ---
Sam Smith 7897r
857t
78974x
7868p
Additional query words: catalog index list table print merge mail
Keywords: kbfield kbhowto kbmerge KB189025