Bentley Communities
Bentley Communities
  • Site
  • User
  • Site
  • Search
  • User
OpenGround | gINT | Keynetix
  • Product Communities
OpenGround | gINT | Keynetix
OpenGround Wiki Example "Hide If" 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 "Hide If" Expressions

    The following table contains some example Hide If statements that can be used for Headers in OpenGround Data Collector

    Header Expression Result
    Sample Diameter [Type] <>'U' Only show diameter if the type is U
    Sample Base in ([Type] ,'U', 'P') Hide the base depth if the sample type is U or P
    Sample Diameter isnull([Type]) Hide sample diameter if there is no Type defined
    Sample Diameter not in([Type], 'U', 'UF', 'TW','TWF','P','PF','U/38') Show the diameter if the Type is U, UF, TW, TWF, P PF or U/38.  Note the use of NOT turns the expression from a “hide if” into a “show if”
    Sample Diameter   isnull([Type]) or not in([Type], 'U', 'UF', 'TW','TWF','P','PF','U/38') Combine the last two – Show if the Type is U, UF, TW, TWF, P PF or U/38 and don’t show if there is nothing defined. Note: Make sure the isnull() condition is the first condition (known issue).
    • Share
    • History
    • More
    • Cancel
    • Stephen Evason Created by Bentley Colleague Stephen Evason
    • When: Mon, Mar 22 2021 10:46 AM
    • Jesse Greenwald Last revision by Bentley Colleague Jesse Greenwald
    • When: Fri, Jul 16 2021 6:33 PM
    • 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