Bentley Communities
Bentley Communities
  • Site
  • User
  • Site
  • Search
  • User
OpenCities Map
  • Product Communities
  • Geospatial
  • OpenCities Map
  • Cancel
OpenCities Map
OpenCities Map Wiki - Property Watchers to drive domain lists
    • Sign In
    • -OpenCities Map Wiki
      • -OpenCities Map
        • - End of Support for Bentley Map V8i (SELECTseries) products
        • +Release Information
        • +Installation Information
        • +Getting Started
        • +Administration
        • +General Topics
        • -Geospatial Administrator
          • - About Expand Variables
          • - Automatically execute commands upon file open [XFM project]
          • - Automatically connect to a graphical source
          • - Base Source Directory and Files Node
          • - Base Source Directory configuration
          • - Built in XFM properties
          • - Capture point feature coordinates with two examples
          • - Change property order using text editor
          • - Changing project and workset information
          • - Concatenate properties to populate new property using Property Watcher
          • - Create a geospatial schema
          • - Create a new schema recommended workflow
          • - Customize Command Manager with help from Excel
          • - Customize dialogs
          • - Customize Operations to show property based on criteria
          • - Date Time Property Show None to set dates to null
          • - Decimal Precision in Analyze XFM Feature Results
          • - Defining polygons with holes or islands
          • - Domain list initial values
          • - Domain list width (Calculate List Width)
          • - Domain list width (Form View width)
          • - Feature Collection and Collection Name Property
          • - Files node in User Workspace
          • - Fix Cannot access a disposed object error
          • - Generate workspace from command line
          • - Increment property values
          • - Multiline text for PBA
          • - Number  properties and setting decimal places for data entry
          • - Open schema via desktop shortcut
          • - Property Watcher on an empty value
          • - Property Watcher to compute values
          • - Property Watcher to read Col2 of a Domain List
          • - Property Watcher to set true or false
          • - Property Watcher to update a date property
          • - Property Watchers to drive domain lists
          • - Replace text during Shapefile importing
          • - Replace text in cells using PBA with two examples
          • - Rounding numbers
          • - Set Area and Perimeter to Read Only
          • - Shortcut arguments –ws , -wr, -wu
          • - Shortcut Target path
          • - Sort properties by Display Name
          • - Store Last Value to define property fields for new feature placement
          • - Tabbed dialogs
          • - Text and Text Node Justification
          • - Text Annotation Subfeature
          • - Text features from PBA
          • - Text size settings
          • - Update property when Split/Merge used
          • - UpdatedBy and UpdatedDate properties
          • - Using raster images as a graphical source
          • - Value Col Name vs Edit Col Name
          • - Workspace location V8i compared to CONNECT Edition
        • +Feature Definitions and Inference Rules
        • +Interoperability
        • +Spatial Databases
        • +Spatial Analysis
        • +3D Geospatial
        • +Geographic Coordinate Systems
        • +Troubleshooting
        • +Freeware - Utilities - Applications - Programs
        • +Advanced Map Finishing
      • OpenCities Map Ultimate for Finland CONNECT Edition x64 (SES)
      • OpenCities Map Ultimate for Finland CONNECT Edition - Suomi
      • Bentley Descartes
      • +Other Geospatial Products

     
     Questions about this article, topic, or product? Click here. 

    - Property Watchers to drive domain lists

    Property watchers allow destination properties to look for value changes in a source property. When changes occur, they trigger the value of the destination property to be set as illustrated in this video:

     Play this video

    There are three types of property watchers.

    Synch Item Watcher - This type of watcher is typically used with ComboBox properties that specify criteria-based domain lists. This type of watcher can be used to establish relationships between different feature properties. If a match value is provided, the current property’s value must equal this value for the watcher to execute.

     Current List Lookup Watcher - This type of watcher sets the specified property, using the data stored in the specified domain list column of the current property. This type of watcher can be used to display more entries from a domain list with multiple columns.

    Foreign List Lookup Watcher - This type of watcher sets the specified property by taking the current property's value and looking up a matching entry in the domain list associated with another property. This type of watcher can be used to display extra information (indirectly) related to a feature.

    In the following example, a Tree feature is placed with two domain lists. One to define the type of tree (Evergreen or Deciduous) and another to define the Species (Elm, Birch, Pine, etc).   The selected tree Type will drive the content of the Species list.

    For example, selecting Deciduous, will set the Species list to the include only those trees defined in a Deciduous domain list. Likewise, selecting Evergreen as the type will reset the species list to show only those values in the Evergreen domain list.

    The following information describes the details of defining Property Watchers to drive domain lists.

     Once the feature has been created, a property for the tree Type is added as a combo box.   A domain list specifying two tree types is created in the Domains node and added to the Type property.

    The tree Type drives two separate species lists, therefore two criteria are defined in the Criteria node; one for Evergreen and the other for Deciduous.

    NOTE: There is a known defect in GSA that prevents you from typing in the expression directly into the property Use Criteria field. You must pre-create the criteria to use.

    A new property for Species is added and assigned the Evergreen and Deciduous domain lists. In addition, the proper Criteria is selected from the dropdown list.

    At this point the properties, domain lists and criteria have been defined. The Type property now requires a property watcher that will drive the Species domain lists. This is added easily via the right click menu and choosing Add > Watcher List

    This will add a Define Property Watchers tab to the feature definition which allows a Sync Item Watcher to be added .

    The details for the property watcher would include:

    • A name that communicates the intent of the watcher such as UpdateEvergreenList and UpdateDeciduousList
    • The Property field set to Species

    • In the Watcher Detail section, the Match Value is set to the value of the field that’s going to drive the species list. In this example that would be either Evergreen or Deciduous.
    • The Value Type set to value

    A sample schema has been provided for learning.

    Property Watcher for Domain Lists.zip

    • Geospatial Administrator
    • Share
    • History
    • More
    • Cancel
    • Inga Morozoff Created by Bentley Colleague Inga Morozoff
    • When: Mon, Mar 9 2020 2:29 PM
    • Nelson Hobdell Last revision by Bentley Colleague Nelson Hobdell
    • When: Tue, Jan 3 2023 6:49 PM
    • Revisions: 3
    • 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