See also "Creating a collapsing text block that mimics Sys_FullAddress field"
- Create the variables to hold the address lines
- Create a padding variable. It will initially contain the same number of newlines as address variables (5 in this case).
Newlines can be created by using a "Fixed" parameter, clicking on the "…" ellipsis button, checking the "Keep Line Breaks" checkbox, and entering a new line in the text box
- Use the "+" function to add a new line to the end of each of the variables.
Newlines can be created by using a "Fixed" parameter, clicking on the "…" ellipsis button, checking the "Keep Line Breaks" checkbox, and entering a new line in the text box
- Use the "Regexp" function to remove a newline from the "PADDING" variable for each of the address variables
- Create a mapping group for each pair of commands
- Conditionalize each of the groups so they will not execute if the variable is blank
- Create an RTF paragraph and insert all the address variables on one line.
The newlines in the non-blank variables will automatically space out the address lines.
0 Comments