Filtering Field Elements

Field elements can be filtered by using the Filter icon Filter icon.

The filter icon displays when a Filters element is defined in the Workspace Definition File (wdf.xml). Clicking the Filter icon displays the list of filters. Fields containing a SearchTag matching the selected filter are displayed. Fields that do not contain search tags or whose SearchTag value does not match the Filter selection are not displayed.

SearchTags are defined for individual fields in the Workspace Definition file. SearchTags can also be assigned to new fields created in the Word Add-In or when editing fields created in the Word Add-In. Assigning a SearchTag to a field is optional; they are only used to filter fields.

Search Tags

A search tag is a field object property that is used to filter or categorize related fields. Users can more easily identify and select the desired fields when looking at a smaller, more focused list of fields instead of having to scroll through or search through all fields.

The field node definition under the <CommonFields> group in the Workspace Definition file will recognize the new child node <SearchTags>. SearchTags are assigned to individual fields. A field may have none, one or multiple (comma-separated) search tags which are specified in a single text string.

For example:

Field with no SearchTag -

<Field Name="Policy Effective Date">
<Type>Alphanumeric</Type>
<Length>10</Length>
<Required>false</Required>
<NoUserEdit>false</NoUserEdit>
<Locale />
<Scope>Section</Scope>
</Field>

 

Field with one SearchTag -

<Field Name="VIN">
<Type>Alphanumeric</Type>
<Length>10</Length>
<Required>false</Required>
<NoUserEdit>false</NoUserEdit>
<Locale />
<Scope>Section</Scope>
<SearchTags>Automobile</SearchTags>
</Field>

 

Field with multiple SearchTags -

<Field Name="Business Type">
<Type>Alphanumeric</Type>
<Length>10</Length>
<Required>false</Required>
<NoUserEdit>false</NoUserEdit>
<Locale />
<Scope>Section</Scope>
<SearchTags>Automobile, Property</SearchTags>
</Field>

 

Keep in mind:

If you do elect to use SearchTags, they can be added to fields in your Workspace Definition file using an XML editor.

The New and Edit Field dialogs in the Word Add-In include the Search Tag setting. Search Tags can be optionally assigned when creating a new field or editing an existing field in the Word Add-In.

New Field dialog

 

Filters Element

In addition to SearchTags, a Filters Element must also be defined in the Workspace Definiton file in order to Filter fields. The Filters element is a list of the Search Tags assigned to fields in the Workspace Definition File.

For example, the Workspace Definition file contains these fields and their respective SearchTags:

<CommonFields>
<Field Name="VIN">
<Type>Alphanumeric</Type>
<Length>10</Length>
<Required>false</Required>
<NoUserEdit>false</NoUserEdit>
<Locale />
<Scope>Section</Scope>
<SearchTags>Automobile</SearchTags>
</Field>
<Field Name="Business Type">
<Type>Alphanumeric</Type>
<Length>10</Length>
<Required>false</Required>
<NoUserEdit>false</NoUserEdit>
<Locale />
<Scope>Section</Scope>
<SearchTags>Automobile, Property</SearchTags>
</Field>
<Field Name="Personal Umbrella Limit">
<Type>Alphanumeric</Type>
<Length>10</Length>
<Required>false</Required>
<NoUserEdit>false</NoUserEdit>
<Locale />
<Scope>Section</Scope>
<SearchTags>Umbrella</SearchTags>
</Field>
</CommonFields>

 

The Filters element would include those same Search Tags:

<Filters>
<Tag>Automobile</Tag>
<Tag>Home</Tag>
<Tag>Life</Tag>
<Tag>Property</Tag>
<Tag>Umbrella</Tag>
</Filters>

 

Keep in mind:

 

Filter icon and list

Clicking on the Filter icon will display a list of the Filters defined in the Workspace Definition file. The filters list also includes Select All and Inverse selections.

Filter menu

Option

Description

Select All

Selects all of the items from the Filter list

Inverse

Selects all fields that are not selected by the current filter

Specific Filter

Fields containing a Search Tag that matches the selected Filter are displayed. Fields that do not have a Search Tag that matches the selected Filter are excluded from display.

For example, when Automobile is selected from Filter list, fields with a Search Tag of Automobile are shown in the field list. Fields without a Search Tag of Automobile are excluded from the field list. If you select multiple filters, such as Automobile and Property, the fields Search Tag must specify both Automobile and Property (i.e. “Automobile, Property”) in order for that field to be displayed in the field list. Fields with a Search Tag of either Automobile or Property are excluded from the field list.

<Field Name="Last Name">
<Prompt>Enter the Insured's Last Name</Prompt>
<Type>Alphanumeric</Type>
<Length>30</Length>
<Required>false</Required>
<NoUserEdit>false</NoUserEdit>
<Locale></Locale>
<Scope>Section</Scope>
<SearchTags>Automobile,Property</SearchTags>
</Field>

Filters selected

Keep in mind:

 

See Also