FilterType

XML Forms Guide

Version
R2024.1.1
FilterType

Use the <FilterType> tag with the value of Exclude to indicate options that you want to exclude from a drop-down list.

By default, options that you specify with a filter are included in the drop-down list. If the <FilterType> tag is not included or is included without a value, the values that you specify for the filter are included in the drop-down list.

The following code snippet shows an example of this tag being used in a form:

Copy
      <GridColumn>
        <BindingProperty>DFUnionId</BindingProperty>
        <HeaderCaption>lblDFUnion</HeaderCaption>
        <DataProvider>Unions</DataProvider>
        <DisplayMemberPath>ShortName</DisplayMemberPath>
        <SelectedValuePath>DFUnionId</SelectedValuePath>
        <IsRequired>false</IsRequired>
        <Filter>
          <FieldName>DFUnionId</FieldName>
         <FieldValue>6</FieldValue>
          <FilterType>Exclude</FilterType>
        </Filter>
      </GridColumn>