<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE document PUBLIC "-//MAKUMBA//DTD Documentation V2.0//EN" "document-v20-mak.dtd"><document>
    <header>
        <title>mak:criterion tag documentation</title>
    </header>
    <body>
        <section id="description">
      
      
          <title>Description</title>      <p>
    Adds a search criterion to the form. This does not create any inputs, but should be used in combination with
    &lt;mak:searchField&gt;
  </p>    </section>
        <section id="attributes">
            <title>Attributes</title>
            <table>
                <tr>
                    <th>Name</th>
                    <th>Required</th>
                    <th>Request-time</th>
                    <th>Description</th>
                    <th>Comments</th>
                </tr>
                <tr>
                    <td>fields</td>
                    <td class="center required">true</td>
                    <td class="center">false</td>
                    <td>The MDD fields to apply this criterion upon</td>
                    <td>Fixed, mandatory; for multiple fields, provide a comma-separated list.</td>
                </tr>
                <tr>
                    <td>isRange</td>
                    <td class="center">false</td>
                    <td class="center">false</td>
                    <td>Toggles range searching on the field(s)</td>
                    <td>Fixed. Values are true or false; defaults to false.</td>
                </tr>
                <tr>
                    <td>matchMode</td>
                    <td class="center">false</td>
                    <td class="center">false</td>
                    <td>Defines how the search terms shall be matched. Allowed values depend on the data types:
      &lt;ul&gt;
        &lt;li&gt;for string matches, i.e. char and text: 'contains', 'equals', 'begins', 'ends'&lt;/li&gt;
    	&lt;li&gt;for range matches, i.e. int, real and date: 'between', 'betweenInclusive'&lt;/li&gt;
        &lt;li&gt;for number comparisons, i.e. int and real: 'equals', 'lessThan', 'greaterThan'&lt;/li&gt;
        &lt;li&gt;for date comparisons: 'equals', 'before', 'after'&lt;/li&gt;
      &lt;/ul&gt;
      </td>
                    <td>Fixed. Defaults to 'equals' for string, number and date comparisons, and 'betweenInclusive' for range
        comparisons.</td>
                </tr>
            </table>
        </section>
        <section id="example">
      
          <title>Example</title>      <source>
      <![CDATA[
<mak:searchForm in="best.Student" name="searchPerson">
    <mak:criterion fields="name"> ... </mak:criterion>
</mak:searchForm>
      ]]>
  </source>    </section>
        <section id="seeAlso">
            <title>See also</title>
            <ul>
                <li>
                    <a href="/doc/taglib/maksearchForm.html">mak:searchForm</a>
                </li>
                <li>
                    <a href="/doc/taglib/makresultList.html">mak:resultList</a>
                </li>
                <li>
                    <a href="/doc/taglib/makmatchMode.html">mak:matchMode</a>
                </li>
                <li>
                    <a href="/doc/taglib/maksearchField.html">mak:searchField</a>
                </li>
            </ul>
        </section>
    </body>
</document>