Developer Documentation Library > Interviewer - Server Admin > Customizing UNICOM Intelligence Interviewer - Server Admin > Activity configuration files > Activity interface documents > MustMatch element
 
MustMatch element
The MustMatch element contains a collection of project properties which UNICOM Intelligence Interviewer - Server Admin tries to match against a project's property collection in DPM. If the properties described with MustMatch do not appear in the project's collection, UNICOM Intelligence Interviewer - Server Admin will not show the activity. This is useful for activities that require the project to be in a certain state before it can be used. The general syntax of a MustMatch element is as follows:
<MustMatch>
  <Project>
    <Property name="
property_name" datatype="data_type">Value</Property>
  </Project>
</MustMatch>
where:
property_name
The name of the project property whose value must be matched.
data_type
The property's data type, such as boolean or string.
Value
The value that the property must have in order for a match to occur. If a match occurs, the activity is made available.
ShowInterviewApps and ShowTableApps
One of the most common uses of MustMatch is to hide interviewing activities when the user is working on an analysis project, and to hide tabulation activities when the user is working on an interviewing project. You use the ShowInterviewApps and ShowTableApps properties for this.
If ShowInterviewApps is True then the UNICOM Intelligence Interviewer - Server Admin activities are displayed in the activity list. If the property is False these activities will be hidden.
If ShowTableApps is True then the UNICOM Intelligence Reporter activities are displayed in the activity list. UNICOM Intelligence Interviewer - Server Admin sets the values of these properties automatically when you create a new project.
Here is a MustMatch element that displays the current activity only for projects whose ShowInterviewApps property is True:
<MustMatch>
  <Project>
    <Property name="ShowInterviewApps"
              datatype="boolean">True</Property>
  </Project>
</MustMatch>