Bentley Communities
Bentley Communities
  • Site
  • User
  • Site
  • Search
  • User
OpenGround | gINT | Keynetix
  • Product Communities
OpenGround | gINT | Keynetix
OpenGround Wiki Why do the numbered remarks in my data not appear on new lines on my templates?
    • Sign In
    • -OpenGround Wiki
      • -Applications
        • +Admin Portal
        • +Civil 3D Extension
        • +Data Collector
        • +Data Entry Module
        • +Excel Extension
        • +Launcher
        • +OpenGround Professional
        • +Portal Technical Preview
        • +Power BI Connector
        • -Template Studio
          • Template Studio Release Notes
          • +Template Studio How Tos
          • -Template Studio FAQ's
            • An Introduction to Depth Related Images
            • How do I show points/symbols on a scatter graph annotated with text?
            • How does the End of Borehole Text Work?
            • Is there a common list of requested Expressions available?
            • Why do the numbered remarks in my data not appear on new lines on my templates?
          • +Template Studio Common Issues
          • +Template Studio User Guide
        • +Upload Portal
        • +Web API and Task Service
        • +Web Portal
      • +Guides and Learning
      • OpenGround Supported Platforms
      • +How To Contact Support
      • Component Center
      • Events
      • Training Guides
      • +Developer Resources

     
     Questions about this article, topic, or product? Click here. 

    Why do the numbered remarks in my data not appear on new lines on my templates?

    Question

    When importing the data into OpenGround, when previewing the data on the templates, any remarks that appeared on separate lines now all appear on one line. How can the line feeds be put back in automatically?

    Answer

    Use the following expression in your templates instead of the location details remarks field;

    substitute(substitute(substitute(substitute(substitute(substitute(substitute(substitute(substitute([LocationDetails.Remarks], '2. ', '\n2. '), '3. ', '\n3. '), '4. ', '\n4. '), '5. ', '\n5. '), '6. ', '\n6. '), '7. ', '\n7. '), '8. ', '\n8. '), '9. ', '\n9. '), '10. ', '\n10. ')

    n.b. this will only work for remarks that are numbered. Other expressions may be needed to do similar workings for other situations.

    Explanation

    The issue is caused by the data being exported into AGS or similar (AGS does not support multi-lined files) and therefore the line breaks not existing in the data anymore. Therefore all we can do is try and search for something that would cause a new line and put a new line in its spot.

    In the above expression, we search for any number value with a dot and a space after it (e.g. '1. ') and replace this with the same value and a line feed (e.g '\n1. ').

    • Share
    • History
    • More
    • Cancel
    • Stephen Evason Created by Bentley Colleague Stephen Evason
    • When: Tue, Mar 23 2021 6:22 AM
    • Revisions: 1
    • Comments: 0
    Recommended
    Related
    Communities
    • Home
    • Getting Started
    • Community Central
    • Products
    • Support
    • Secure File Upload
    • Feedback
    Support and Services
    • Home
    • Product Support
    • Downloads
    • Subscription Services Portal
    Training and Learning
    • Home
    • About Bentley Institute
    • My Learning History
    • Reference Books
    Social Media
    •    LinkedIn
    •    Facebook
    •    Twitter
    •    YouTube
    •    RSS Feed
    •    Email

    © 2023 Bentley Systems, Incorporated  |  Contact Us  |  Privacy |  Terms of Use  |  Cookies