Bentley Communities
Bentley Communities
  • Site
  • User
  • Site
  • Search
  • User
OpenGround | gINT | Keynetix
  • Product Communities
OpenGround | gINT | Keynetix
OpenGround Wiki General Rules for Expressions
    • 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
          • +Template Studio Common Issues
          • -Template Studio User Guide
            • +Working with Templates
            • +The Interface
            • Important Template Settings Information
            • +Using Template Studio
            • +Template Setup
            • +Column Configuration
            • +Depth Related Items
            • +Designing Header and Footer Areas
            • +Designing Tables
            • +Filter Groups
            • +Types of Template
            • -Powerful Expressions
              • +Expression Library
              • Adding Text to Fields
              • Building Your Own Expressions
              • Changing Display Decimal Places
              • Combining Columns
              • +Different Types of Expressions
              • General Rules for Expressions
              • Nesting Functions
              • Referencing Columns in a Grid
        • +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. 

    General Rules for Expressions

    • Referencing a field in the database is done using the following syntax [group.Header]. The group and header name are displayed in brackets in the properties interface. E.g. the following field would be referred to as [LocationDetails.ApprovedBy] The use of capital letters and the square brackets is important.
    • To add numbers to a text expression you must wrap the value with the text() command.
    • You can use the Fixed() command to fix the number of decimal places within the number before it is
    • To add two strings together you can use the + operator and to add text to parameters the text must be in single quotes
    • A Carriage return can be added to an expression using the '\n'
    • The following expression shows all of these rules to show the Easting to 2DP followed by the let-ter E followed by a carriage return and then the Northing to 2DP followed by the letter N

    text(fixed([LocationDetails.Easting], 2, false)) + 'E' + '\n' + text(fixed([Loca-tionDetails.Northing], 2, false)) + 'N'

    • Share
    • History
    • More
    • Cancel
    • Stephen Evason Created by Bentley Colleague Stephen Evason
    • When: Tue, May 31 2022 8:11 AM
    • Stephen Evason Last revision by Bentley Colleague Stephen Evason
    • When: Fri, Mar 3 2023 11:13 AM
    • Revisions: 2
    • 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