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.1K All Categories
- 61 General
- 11 Training
- 201 Installation / Setup
- 1.1K Flows
- 106 Rules
- 260 Administration
- 212 Portal
- 489 General Q & A
- 693 Forms
- 333 Reports
- 3 Designer Extensions
- 47 Example Flows
- 51 CSS Examples
- 1 Diagram Tile
- 7 Javascript Controls
- 178 Pages
- 5 Process Mining
- New Features
- 178 Datastructures
- 69 Repository
- 219 Integrations
- 28 Multi-Tenant
- 27 SDK
- 76 Modules
- 56 Settings
- 25 Active Directory
- 12 Version 7
- 35 Version 8
- 66 Lunch And Learn Questions