Searches are defined in the Search.xml file in the Search subfolder. It has the following structure:

<?xml version="1.0" encoding="UTF-8" ?>

<SearchDefinitionList>

 <SearchDefinitionGroup>

  <Title>Example</Title>

  <SearchDefinition>

    <Name>example</Name>

    <Title>Example Search</Title>

    <Filter>exampleFilter</Filter>

    <Sql>exampleSql</Sql>

    <Detail>exampleDetail</Detail>

  </SearchDefinition>

</SearchDefinitionList>

 

The SearchDefinition section and its child elements are repeated for each search option made available. They have the following usage:

Group        The search Group name

Name        Unique name for the search, do not use spaces.

Title        The title displayed on the search menu.

Following elements are optional and can be left out:

Filter        Alternative filter name if not using same as search name. (e.g to share one filter for many searches)

Sql        Alternative name for SQL file is not using same as search name.

Detail        Alternative name of filter section is not using same as search name.

Hide        If this is set to true, the search is not visible in the menu but can then be referenced from another screen via a link.
(e.g. http://server/fieldportal/Search/Result?name=searchname

Caption        Is an alternative title on the result screen

HasLoop        Means that the details screen receives a list of resulting records and it defines the for each loop used. (See EquipmentListDetail.cshtml for details).  This is only used in advanced cases.