Bentley Communities
Bentley Communities
  • Site
  • User
  • Site
  • Search
  • User
OpenGround | gINT | Keynetix
  • Product Communities
OpenGround | gINT | Keynetix
OpenGround Wiki Example Validation Expressions
    • Sign In
    • -OpenGround Wiki
      • -Applications
        • +Admin Portal
        • +Civil 3D Extension
        • -Data Collector
          • Data Collector Release Notes
          • +Getting Started for Data Collector
          • +Data Collector How To's
          • -Data Collector FAQ's
            • Example "Hide If" Expressions
            • Example Calculated Values Expressions
            • Example Default Values
            • Example Validation Expressions
            • Using the Action for "Set Previous Base Depth"
            • Why Don't I Have Any Available Projects in Data Collector?
          • +Data Collector User Guide
          • +Troubleshooting for Data Collector
        • +Data Entry Module
        • +Excel Extension
        • +Launcher
        • +OpenGround Professional
        • +Portal Technical Preview
        • +Power BI Connector
        • +Template Studio
        • +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. 

    Example Validation Expressions

    The following are examples of validation equations that can be added to a header within a step in OpenGround Cloud Data Collector

    isnumber([HandPenetrometer])​

    Header Valid Expression Message (displayed when Valid Expression returns false)
    Sample Base [DepthBase]>=[DepthTop] ‘Incorrect Depths.  Base depth must be greater than or equal to top depth’
    Sample Base [DepthBase]>=0 ‘Incorrect base depth.  Value must be greater than or equal to 0’
    Date Time Sampled [DateTimeSampled]>[LocationDetails.DateStart] 'Incorrect Date.  This location was started on ' + [LocationDetails.DateStart]
    Hand Penetrometer isnumber([HandPenetrometer]) 'Value is not numeric.  Are you sure this is correct?'
    Date Test [DateTest]<Now() 'Test date cannot be in the future!'
    Depth Base not(isnull([DepthBase])) 'Warning: No depth base has been recorded'
    • Share
    • History
    • More
    • Cancel
    • Stephen Evason Created by Bentley Colleague Stephen Evason
    • When: Mon, Mar 22 2021 10:48 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