Bentley Communities
Bentley Communities
  • Site
  • User
  • Site
  • Search
  • User
OpenCities Map
  • Product Communities
  • Geospatial
  • OpenCities Map
  • Cancel
OpenCities Map
OpenCities Map Wiki - Sort properties by Display Name
    • 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. 

    - Sort properties by Display Name

    There are several ways to name a Feature in OpenCities Map - by Feature Name, Display Name, Collection Name, Table Name, Label, Category Name, Sub-Feature Name, etc.  Defining a Display Name to these Features can provide flexibility to the administrator for organization and data interoperability.  

    Similarly, Property Names can have an alternate Display Name which makes it better suited, and easily recognizable than the original Property Name.

    Compare the two summaries, before and after defining a Display Name:

             

    Display Names provide a way to make the Feature Name readable. This is especially apparent when reviewing Features using the Analyze Feature command in OpenCities Map.  

    Compare the two Analyze Results, before and after defining and ordering by Display Name:

         

    You can Sort By Display Name and get these results by modifying the default.xslt file that is delivered with OpenCities Map, and adding the line:

    <xsl:sort select="@displayName" />

    The default.xslt file is located in the ...\Map CONNECT Edition\MapAdvanced\Xml\xslt  installation folder.

    1. Copy and rename default.xslt so you will have a backup of the file.

    2. Edit default.xslt to look like this:

    <xsl:for-each select="*">
            <table width="100%" CELLSPACING="0" CELLPADDING="0" BORDER="1">
                <tr class="feature" style="display:block;">
                <xsl:choose>
                    <xsl:when test="@displayName">
                        <td class="feature" colspan="2"><xsl:value-of select="@displayName"/></td>
                    </xsl:when>
                    <xsl:otherwise>
                        <td class="feature" colspan="2"><xsl:value-of select="name()"/></td>
                    </xsl:otherwise>
                </xsl:choose>
                </tr>
                <tr class="head" style="display:block;">
                   <td>Property</td>
                   <td>Value</td>
                </tr>
                <xsl:apply-templates select="*">
                   <xsl:sort select="@displayName" />
                   <xsl:with-param name="tag">exp<xsl:value-of select="generate-id()"/></xsl:with-param>
                </xsl:apply-templates>
            </table>
        </xsl:for-each>
    

     

    Now each time you use the Analyze Result, the list will be alphabetized and sorted by Display Name.

    Additional Resources:

    • Creating Clickable Links on Feature Properties (xslt)
    • Bentley Map V8i XFM-Hyperlink
    • Default.xslt - select to download the file
    • Change property order using text editor

     

    • Business Properties
    • OpenCities Map
    • Analyze Feature
    • Display Name
    • Bentley Map
    • Sort
    • Share
    • History
    • More
    • Cancel
    • Dan Weston Created by Bentley Colleague Dan Weston
    • When: Tue, Nov 24 2015 1:41 PM
    • Nelson Hobdell Last revision by Bentley Colleague Nelson Hobdell
    • When: Tue, Jan 3 2023 6:49 PM
    • Revisions: 12
    • 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