Bentley Communities
Bentley Communities
  • Site
  • User
  • Site
  • Search
  • User
OpenGround | gINT | Keynetix
  • Product Communities
OpenGround | gINT | Keynetix
gINT | Keynetix Wiki Why do the numbered remarks in my data not appear on new lines on my templates?
    • Sign In
    • -gINT | Keynetix Wiki
      • +gINT
      • +gINT Collector
      • +gINT Civil Tools
      • -Keynetix
        • +Installing or Upgrading to CONNECT Edition
        • +Archive Webinars
        • +HoleBASE
        • +HoleBASE Civil Extension
        • +HoleBASE Data Entry
        • +HoleBASE Excel Extension
        • -HoleBASE Template Studio
          • +HoleBASE Template Studio:Getting Started
          • -Template Studio: FAQs
            • +Designing Depth Related Areas
            • -Expressions
              • Excel Functions
              • How To Display a Full Location Type Rather than an Abbreviation
              • How To edit the Stratum Detail Descriptions to include the depth information
              • How to show top and base levels in the 'level' column.
              • How To use Text Styling to Make part of the Geology Description Bold
              • Is there a common list of requested Expressions available?
              • Log Only Functions
              • Mathematical Functions
              • My Expression in Template Studio shows the wrong date
              • Run Time Functions
              • Text Styling
              • Why do the numbered remarks in my data not appear on new lines on my templates?
            • +Loading and Saving Templates
          • +HoleBASE Template Studio:How Tos
          • +HoleBASE Template Studio:Issues
          • HoleBASE Template Studio Release Notes
        • +KeyAGS
        • +KeyLAB
        • +Keynetix Component Downloads
        • +Working from Home with Keynetix Products
        • Hardware Specifications and Recommendations
        • Supported Platforms

     
     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?

      Product(s): Keynetix
      Version(s): 1.0
      Area: Assist

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

    Question

    When importing the data into HoleBASE SI, 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. ').

    • Migrated
    • Share
    • History
    • More
    • Cancel
    • wiki.author Created by Bentley Colleague wiki.author
    • When: Tue, Jun 9 2020 9:20 PM
    • 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