Bentley Communities
Bentley Communities
  • Site
  • User
  • Site
  • Search
  • User
  • Welcome
  • Products
  • Support
  • About
  • More
  • Cancel
OpenCities Map
  • Product Communities
  • Geospatial
  • OpenCities Map
  • More
  • Cancel
OpenCities Map
OpenCities Map Wiki - Tabbed dialogs
    • 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 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
          • - Define form fields for data entry that are not part of feature properties
          • - 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
        • +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. 

    - Tabbed dialogs

    This article discusses the workflow needed to create a simple tabbed dialog.

    Background - The Default dialog

    Take the case of the following dialog that's created from nine properties.  While there is nothing wrong with it, and it's completely useable, it may be beneficial to save on screen real estate and organize the properties into tabs.

    Before moving on, let's pick apart this dialog.  When inserting placement metadata without a form view, the resulting dialog appears as follows:

    However, when Use Form View is enabled, the following dialog is generated.  Notice the "window" that contains the property fields, excessive width and the addition of scroll bars along the right side.  

    These default values are found in the Place feature dialog > stdDlgItem.  By simply removing the default Width, Height,  Max Width and Max Height values, the resulting dialog will be sized to accommodate the property fields.

    Lastly, notice that the form view is the container for the properties:

    The remainder of this article discusses the steps needed to create a tabbed dialog.

     

    Step 1 - Define a TabList operation property to display tab pages.   

    Once you have the XFM properties defined and working as expected, you can organize them into tab groups or pages. To do that, navigate to the Operations node and add a TabList Property.  Define the number of tabs, the operation and the initial value which is the name of the active tab page.

    Once the TabList has been created, you can add additional tab pages.  In this example, the tab pages are named General, Description and Condition. 

    Step 2 - Define each tab page as a new dialog

    In the Dialogs node, add three new dialogs - one for each tab page. 

    Step 3 - Add the properties to the new tab page "dialogs"

    The XFM properties are defined for the feature, so at this time they can be added as Feature Items to the tab page "dialogs". 

    Step 4 - Define width of each property field

    Staying in the Dialog node, define the width of each property field. In this example, the default value of 10 has been changed to 20.   Note:  If you're not getting the expected results when placing the feature, ensure that  that the Resizeable option is enabled for all properties.

    Step 5 - Modify the form view to include the operation TabList property

    At this time, the form view contains the nine feature properties, but not include the TabList which has been defined as an operation property.  Include the operation property named TabGroups that was created above.  To do that, choose Add > Operation Item.  

    Step 6 - Remove the feature properties from the form view

    Since the nine properties are now positioned in the tab pages, they can be deleted from the form view. 

    Step 7 - Export and test

    This is a good point to export and test the new tabbed dialog.  In all likelihood, the dimensions and sizes will cause the dialog to display poorly.

    Step 8 - Adjust the sizes

    Start with adjusting the height and width of the form view TabGroups dialog item.  In this example, the width is set to 26 and the height to 7.  The values to use are often determined by trial and error.

    Step 9 - Final export

    Once exported the sizes have been adjusted, the dialog will be shown correctly with tabs and properties as defined above.

    NOTE:  If you insert feature placement metatdata, it will overwrite the operations and methods.  For this reason, always have a backup copy of your schema.  If needed, you can open in a text editor and copy/paste content from one schema to another.

    Sample schemas are attached for your learning.

    TabbedDialog.zip

    • tablist
    • tabbed dialog
    • operations
    • tabs
    • Share
    • History
    • More
    • Cancel
    • Inga Morozoff Created by Bentley Colleague Inga Morozoff
    • When: Mon, Jun 24 2019 2:06 PM
    • Inga Morozoff Last revision by Bentley Colleague Inga Morozoff
    • When: Mon, Mar 9 2020 2:29 PM
    • Revisions: 6
    • 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

    © 2021 Bentley Systems, Incorporated  |  Contact Us  |  Privacy |  Terms of Use  |  Cookies