Merge HTML Text
Comments
-
Hi, A quick question on Merge HTML Text.
I have a string in the flow which has built-in newline characters like this:
line 1: asdf
Date: 2020-01-24
Id of Id: asdf
Type: asdf
Other Id: ID123
Other Type: asdf
Int: 1
Some Letter: PI’m putting the entire string variable into the Merge HTML Text Editor. When it is printed on the view, it shows them as a single line without line-breaks.
What am I missing to see the newlines?
-
There are least two ways to accomplish this. Both methods make use of a Split String by New Line step, a ForEach step, and either a Create Data step or a Custom Merge (NVelocity) step. Both methods involve splitting the input string into an array, iterating through that array, and merging each line into a new string. Here are two demo flows showing how to arrange this.
In Vertical Comment Example2, there is an HTML Merge within the loop that appends the new line to the string output.
[img]att2[/img]In Vertical Comment Example 3, the merge is done with a Custom Merge (NVelocity) step with an HTML break tag between the tokens.
[img]att3[/img]
[i]edited by james.hartzell@decisions.com on 2/10/2020[/i]
Howdy, Stranger!
Categories
- 4.2K All Categories
- 68 General
- 11 Training
- 203 Installation / Setup
- 1.1K Flows
- 108 Rules
- 264 Administration
- 212 Portal
- 494 General Q & A
- 702 Forms
- 334 Reports
- 3 Designer Extensions
- 47 Example Flows
- 53 CSS Examples
- 1 Diagram Tile
- 7 Javascript Controls
- 180 Pages
- 5 Process Mining
- New Features
- 181 Datastructures
- 69 Repository
- 222 Integrations
- 28 Multi-Tenant
- 27 SDK
- 81 Modules
- 57 Settings
- 25 Active Directory
- 12 Version 7
- 35 Version 8
- 106 Lunch And Learn Questions