Skip to content
DataMiner Dojo

More results...

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Search in posts
Search in pages
Search in posts
Search in pages
Log in
Menu
  • Updates & Insights
  • Questions
  • Learning
    • E-learning Courses
    • Tutorials
    • Open Classroom Training
    • Certification
      • DataMiner Fundamentals
      • DataMiner Configurator
      • DataMiner Automation
      • Scripts & Connectors Developer: HTTP Basics
      • Scripts & Connectors Developer: SNMP Basics
      • Visual Overview – Level 1
      • Verify a certificate
    • YouTube Videos
    • Solutions & Use Cases
      • Solutions
      • Use Case Library
    • Agility
      • Learn more about Agile
        • Agile Webspace
        • Everything Agile
          • The Agile Manifesto
          • Best Practices
          • Retro Recipes
        • Methodologies
          • The Scrum Framework
          • Kanban
          • Extreme Programming
        • Roles
          • The Product Owner
          • The Agile Coach
          • The Quality & UX Coach (QX)
      • Book your Agile Fundamentals training
      • Book you Kanban workshop
    • >> Go to DataMiner Docs
  • DevOps
    • About the DevOps Program
    • Sign up for the DevOps Program
    • DataMiner DevOps Support
    • Feature Suggestions
  • Downloads
  • Swag Shop
  • PARTNERS
    • Business Partners
    • Technology Partners
  • Contact
    • Sales, Training & Certification
    • DataMiner Support
    • Global Feedback Survey
  • >> Go to dataminer.services

Interactive Script TextBox component containing rn

Solved114 views1 day agoIAS Toolkit
4
Mieke Dryepondt [SLC] [DevOps Advocate]3.91K 2 days ago 0 Comments

I have a TextBox component in an interactive automation script displaying a piece of text from a dataset that can contain NewLines (\r\n).
I want the user to edit this text, and when he does, the content (.Text) of the textbox seems to have lost the NewLines: when I print it in an info message I don’t see \r\n anymore.

Does this component replaces NewLines with something else?

Mieke Dryepondt [SLC] [DevOps Advocate] Selected answer as best 1 day ago

2 Answers

  • Active
  • Voted
  • Newest
  • Oldest
3
Peter Vanpoucke [SLC] [DevOps Advocate]1.23K Posted 1 day ago 0 Comments

hi Mieke

You’re correct that the newline characters can differ depending on where the interactive automation script is executed. When running in web, the textbox will use ‘\n’, while Cube uses ‘\r\n’. It is possible to mix both types in the initial value when a multiline initial value.

To easily split the text into lines, you can use something like:

var lines = textBoxStringValue?

.Split(‘\n’)

.Select(x => x.Trim(‘\r’));

After processing, joining the lines using ‘\n’ should work consistently across both environments.

Mieke Dryepondt [SLC] [DevOps Advocate] Selected answer as best 1 day ago
1
Mieke Dryepondt [SLC] [DevOps Advocate]3.91K Posted 2 days ago 0 Comments

Seems like after editing the textbox the \r\n is replaced by a single \n.

Mieke Dryepondt [SLC] [DevOps Advocate] Unselected an answer 1 day ago
Please login to be able to comment or post an answer.

My DevOps rank

DevOps Members get more insights on their profile page.

My user earnings

0 Dojo credits

Spend your credits in our swag shop.

0 Reputation points

Boost your reputation, climb the leaderboard.

Promo banner DataMiner DevOps Professiona Program
DataMiner Integration Studio (DIS)
Empower Katas
Privacy Policy • Terms & Conditions • Contact

© 2026 Skyline Communications. All rights reserved.

DOJO Q&A widget

Can't find what you need?

? Explore the Q&A DataMiner Docs