Displaying facilities near a sewer main
To display facilities near a sewer main, you can add an item and a command to the Map Drawer for the Sewer Main InfoViewer.
You can use the Content Manager to identify the correct Map Drawer access point. First find the page on which you want to edit the Map Drawer, and then check the MapDrawerID property of the button. In this case the Map Drawer ID is AssetManagement.Asset:InfoViewer.
To add an item to the Map Drawer, add a new
node under the node, with these attribute values:Attribute | Value |
---|---|
id | 2 |
text | Show Nearby Facilities |
title | Nearby Facilities |
The text attribute specifies the text that will be displayed in the menu, and the title attribute specifies the title that will be displayed in the Map Drawer.
Next add an component, meaning that the data source is the business object identified by the name attribute. The moniker attribute gives the moniker of the business object.
node under your new item, and then add a node under the node. In this case the type of the source isAttribute | Value |
---|---|
moniker | Hansen.AssetManagement.Asset |
name | Asset |
type | component |
Finally, add a new command under the
node with these attribute values:Attribute | Value |
---|---|
closemap | False |
id | 3 |
items | 2 |
querymoniker | Hansen.AssetManagement.Plant.PlantFacility |
state | on |
text | Nearby Facilities |
type | query |
The command type is query, so the command will be displayed as a query layer in the Map Drawer. The items attribute specifies the Show Nearby Facilities item based on its ID. The querymoniker attribute specifies the Hansen.AssetManagement.Plant.PlantFacility object as the source of the data that will be displayed in the query layer.
Save the configuration and open the Sewer Main InfoViewer. Show Nearby Facilities should now be displayed in the menu when you click the button.