Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Save $650 on Qlik Connect, Dec 1 - 7, our lowest price of the year. Register with code CYBERWEEK: Register
cancel
Showing results for 
Search instead for 
Did you mean: 
Chris_Elders_VZ
Contributor II
Contributor II

Display multi-line comment

Hey Qlik Community! 👋

We're facing a bit of a challenge trying to display multi-line comments captured in a Vizlib Writeback table within a standard Vizlib table.

Here's the situation:

  • We have user comments being entered into a Vizlib Writeback table. These comments can span multiple lines (using line breaks within the writeback field).
  • When we simply add the comment field from the Writeback table to a regular Vizlib table, all the lines get squashed into a single, long sentence, making it really hard to read.

We've considered a couple of workarounds, but neither feels ideal:

  1. Direct Field Inclusion: As mentioned, this results in the dreaded "wall of text." 😫
  2. Using a Separator Character ("|"): While this technically works to delineate comments, it's not user-friendly. People might forget to add the separator, leading to data integrity issues. Plus, it would require extra scripting or a separate table to properly parse and display the comments in a readable stacked format. ⚙️

So, our question for the brilliant minds here is: Is there a way to display these multi-line comments from the Vizlib Writeback table in a standard Vizlib table with the line breaks preserved (i.e., stacked on separate lines) without relying on users to manually input a separator character?

We're open to any suggestions or insights you might have! Thanks in advance for your help! 🙏

Labels (2)
1 Reply
nevopotokcloudinary

Hi all — we’re seeing the same issue where multi-line comments entered via Vizlib Writeback are displayed in a standard table as one long line, losing the line breaks.

Simple workaround that helped us:
• In the load script or via an expression use Replace(CommentField, chr(10), '<br/>') (or similar) to convert the newline character into HTML line break tags.
• Then in the table (or extension) enable HTML content rendering for that cell so the <br/> shows as a real line break.

It’s not perfect (depends on your table extension supporting HTML) but preserves readability until a built-in solution comes along