Bentley Communities
Bentley Communities
  • Site
  • User
  • Site
  • Search
  • User
OpenGround | gINT | Keynetix
  • Product Communities
OpenGround | gINT | Keynetix
OpenGround Wiki Syntax of GetProjectPicklistValues
    • 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
          • Power BI Release Notes
          • -Power BI User Guide
            • Installation & troubleshooting
            • Power BI Getting Started
            • -Editing Power BI Reports
              • Opening the Advanced Editor
              • Syntax of OpenGround.Query
              • Syntax of GetProjectPicklistValues
              • Data Display Tips
            • Creating New Power BI reports
          • +Power BI Sample Report Templates
          • +Power BI - Data techniques
        • +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. 

    Syntax of GetProjectPicklistValues

    When working with data from OpenGround that contains pick list values it can be useful to bring back the descriptions for the items as well.   This allows you to show "Rotary Cored" instead of "RC" within a report.

    To bring back the pick list items you need to use the GetProjectPicklistValues command as shown in the example below.

    The GetProjectPicklistValues has three parameters Cloud, ProjectInstance and PickListID.

    Cloud:  This is the Cloud ID that is used in many reports and usually set up as a report parameter.

    ProjectInstance:  This is the internal ID for the project.  To find this parameter you must use the GetProjectInstanceIdentifier command as shown below

    ProjectIdentifier = OpenGround.GetProjectInstanceIdentifier(Cloud, ProjectId),

    PickListID:  This is the internal ID for the picklist group.  To find this parameter you must use the GetProjectPicklistHeaderGroups using the example below

    LocationTypePicklistGroup = OpenGround.GetProjectPicklistHeaderGroups(Cloud, ProjectIdentifier, Group, Header),
    Results = Table.First(LocationTypePicklistGroup),
    PickListID = Results[Id],

    • Share
    • History
    • More
    • Cancel
    • Roger Chandler Created by Bentley Colleague Roger Chandler
    • When: Mon, Aug 8 2022 9:12 AM
    • Roger Chandler Last revision by Bentley Colleague Roger Chandler
    • When: Mon, Aug 8 2022 9:14 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