Folder search

Build 1501 on 14/Nov/2017  This topic last edited on: 6/Sep/2016, at 13:33

Syntax for the article folder search with the operator button

       <attribute path="[article.folderRef]" mode="Normal">

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

           <template kind="Tree"/>

         </ui>

 

Syntax for the article folder search without operator button (default=InSubtree)

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

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

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

         </ui>

       </attribute>

 

Syntax for the folderObject folder search without operator button (default=InSubtree)

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

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

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

         </ui>

       </attribute>

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>