Responder Developer Guide
Grid Filters

Resource Center Home

To customize these filters, you’ll modify the XML for the dockable window in ControlStylesConfig.xml using VB Script. You’ll need to know which dockable window you’re modifying. Below are the dockable windows with grid filters that may be customized. These names are as they appear in ControlStylesConfig.xml. The name in parentheses corresponds to the name of the window in the user interface.

Create a Custom Filter

This topic walks through an example of adding a filter that displays all of the crews associated with a particular company. This filter resides on the Alerts (AlertsGrid) dockable window in Responder Explorer.

  1. Open ControlStylesConfig.xml. By default, this file is installed here: C:\Program Files (x86)\Miner and Miner\Responder\Server.
  2. Search for the control (dockable window) that holds the filter you want to customize (e.g., IncidentGrid, IncidentGridAllRegions).
  3. Each control has tables associated with it. Filters must be associated with the first table under the control. The list below shows the control followed by the initial table.
    • IncidentGrid: RX_INCIDENTS
    • IncidentGridAllREgions: RX_INCIDENTS
    • AlertsGrid: Alerts (not in geodatabase)
    • PendingEditsGrid: PendingEdits (not in geodatabase)

The tables referenced by the AlertsGrid (Alerts) and PendingEditsGrid (PendingEdits) controls do not correspond to tables in the geodatabase. Instead, their columns are listed in ControlStylesConfig.xml. For example:

<Table Represents="PendingEdits" Editable="false">
 <Columns Key="">
  <Column Represents="TimeStarted" IsSortColumn="true" />
  <Column Represents="OperationID" Visible="false" />
  <Column Represents="Substation" Visible="false" />
  <Column Represents="Feeder" Visible="false" />
 </Columns>

Use these columns to create your filter.

  1. Create your filter using the available columns (either in the geodatabase table or in the <columns> section). Be sure to place the <FilterFinders> tag immediately after the </Appearances> tag. Below is an example filter that displays all incidents in the Ithaca substation.
<FilterFinders>
 <FilterFinder Key="IncidentDevices_Substation" FilterFinderType="Both">
  <Evaluator>Vbs:[Substation] = 'ITHACA'</Evaluator>
  <Caption>Ithaca Substation</Caption>
  <Description>All incident devices on the Ithaca Substation</Description>
 </FilterFinder>
</FilterFinders>

Note that VB Script is case-sensitive. The casing in the example above is correct. The following casing will fail:

<Evaluator>VBS:[Substation] = "ITHACA"</Evaluator>

Figure 1, Sample filter in the user interface

Attributes

 

 

 

 


Send Comment to ArcFMdocumentation@schneider-electric.com