Folder kind filtering in version 2.0 or newer

Build 1501 on 14/Nov/2017  This topic last edited on: 10/Jun/2016, at 16:43

In version 2.0 we added the possibility for listings, filtered by folderKind, to filter out the inappropriate folders from the tree of folders (GN4-1394).

You can also hide the children of filtered items in the tree by means of the attribute hideFilteredChildren attribute to the UI.Template (GN4-1743). Set the hideFilteredChildren to True to hide all the children of items that don't match the filter condition. If this attribute is set to false (default) the filtered items are displayed (because one or more child can match the filter condition).

The following screenshot shows on the left side the list of folders in EdAdmin4, and on the right side the Editorial navigator on the Shell main tab in Fred4. As you can see, the folders with archive and wires folder kind do not appear on the tree of folders.

Click to toggle graphic size

Syntax for listings filtered by folderKind, to filter out the inappropriate folders (but not their children) from the tree of folders

(available in version 2.0 or newer)

        <attribute path="[folderObject.folderRef]" mode="Normal" op="InSubtree" >

          <ui labelPosition="Side" refAttributes="folderParent" orientation="Horizontal">

            <searchConditions>

              <SearchNode

                xmlns="http://www.teradp.com/schemas/GN4/1/SearchConditions.xsd"

                xsi:type="SearchConditionList"

                xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

                <List Op="NotIn" Path="[folder.folderKind]">

                  <IdList>

                    <IdName Name="wires" />

                    <IdName Name="archive" />

                  </IdList>

                </List>

              </SearchNode>

            </searchConditions>

            <template kind="Tree" opMode="Hidden"/>

          </ui>

        </attribute>

Syntax for listings filtered by folderKind, to filter out the inappropriate folders and their children, from the tree of folders

(available in version 2.0 or newer)

        <attribute path="[folderObject.folderRef]" mode="Normal" op="InSubtree" >

          <ui labelPosition="Side" refAttributes="folderParent" orientation="Horizontal">

            <searchConditions>

              <SearchNode

                xmlns="http://www.teradp.com/schemas/GN4/1/SearchConditions.xsd"

                xsi:type="SearchConditionList"

                xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

                <List Op="NotIn" Path="[folder.folderKind]">

                  <IdList>

                    <IdName Name="wires" />

                    <IdName Name="archive" />

                  </IdList>

                </List>

              </SearchNode>

            </searchConditions>

            <template kind="Tree" opMode="HiddenhideFilteredChildren="True"/>

          </ui>

        </attribute>

Syntax for folderBrowser filtered by folderKind, to filter out the inappropriate folders from the tree of folders

(available in version 2.0 or newer)

      <l:FolderBrowser

        Grid.Row="1"

        ConditionPath="[folderObject.folderRef]"

        SearchCriteriaTarget="{Binding Path=SearchCriteria, ElementName=EditorialShellNavTab}">

        <l:FolderBrowser.Resources>

          <XmlDataProvider x:Key="SearchConditions">

            <x:XData>

              <SearchConditions xmlns="http://www.teradp.com/schemas/GN4/1/SearchConditions.xsd">

                <SearchNode

                  xmlns="http://www.teradp.com/schemas/GN4/1/SearchConditions.xsd"

                  xsi:type="SearchConditionList"

                  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

                  <List Op="In" Path="[folder.folderKind]">

                    <IdList>

                      <IdName Name="wires" />

                      <IdName Name="archive" />

                    </IdList>

                  </List>

                </SearchNode>

              </SearchConditions>

            </x:XData>

          </XmlDataProvider>

        </l:FolderBrowser.Resources>

      </l:FolderBrowser>