The Geographic Nav Selector is a px widget that dynamically creates navigation links for a group of Niagara stations. The navigation is broken down by geographic location based on state, city and site.

align - Alignment property for the group of drop down selectors and hyperlink button.
browser target - String property which is used to formulate the hyperlink and specifies the target used in the browser client.
enabled - Boolean property which controls whether the px widget functions.
hgap - Integer property which configures the number of horizontal pixels between components.
layout - BLayout property which controls the size and location of the px widget in the view.
vgap - Integer property which configures the number of vertical pixels between components.
visible - Boolean property which controls the visiblity of the px widget in the view.
wb target - Enumerated selector for the BHyperlinkMode.
Note that the individual widgets such as the link button have their own px properties as well. Viewing the px properties allows customizing the items such as the font, text or icon of the link button.
The Geographic Nav Selector builds an array of all stations defined in the Niagara network and then attempts to sort the list based on state and city properties. In order for the widget to be able to sort by state and city, properties must be added to the Niagara station components.

State - BString property used to configure the state in which the site is located such as CA or TX.
City - BString property used to configure the city in which the site is loated such as San Diego or Dallas.
Link Ord - BOrd property used to configure the hyperlink ord that will be followed when heyperlinking to this site. If the slot is not present or the ord is not configured then a default ord of the station is used.
For any stations without a "State" property or a null value, the station will be classified in the "State" drop down selector as "undefined". For any stations without a "City" property or a null value, the station will be classified in the "City" drop down selector as "undefined".
The Geographic Nav Selector view is made up of three drop down selectors and a button. Initially the only drop down selector which is enabled is the state selector. After selecting either "undefined" if available or one of the state items, the city drop down selector is enabled.

The city drop down selector will only be populated with cities associated with the selected state item. After selecting either "undefined" if available or one of the city items, the site drop down selector is enabled.

The site drop down selector will only be populated with sites associated with the selected sate and city. The display names of the Niagara stations are used to populate the site selector. After selecting a site, the hyperlink button is enabled.

Clicking the hyperlink button will direct the user to the configured hyperlink for the selected site.
Copyright © 2000-2012 Tridium Inc. All rights reserved.