The Overview, Home, and other pages of the TCM application use list filters to control which tasks, meetings and polls are displayed for a user. (See Filtering lists for more information.) List filters can also appear on the Tasks, Meetings, Polls, Discussions, and Email tabs. On the Tasks, Meetings, Polls, Discussions, and Email tabs, list filters work in conjunction with the Mine Only checkbox. On the Home tab, this checkbox is hidden and is in the selected state.
If you are modifying the list filters for the Home or Overview tab, your changes will apply to three different objects - tasks, meetings, and polls. Be sure that your changes are compatible with each of the object types.
The following procedures illustrate how to change the list options displayed for a list filter, and also how to redefine what one of the options in the list means.
<!-- tasks filter -->
<filter id="TasksFilter">
<module>FilterBar</module>
<options target="filter1">
<option>
<label localKey="cwexml.TCMConfig_xml.TasksFilter.allLabel">All</label>
</option>
<option>
<state>true</state>
<label localKey="cwexml.TCMConfig_xml.TasksFilter.openLabel">Open</label>
<value type="xml">
<conditions>
<condition id="byProperty" type="task" operation="lt">
<propsymname>TaskState</propsymname>
<propvalue type="integer">8</propvalue>
</condition>
</conditions>
</value>
</option>
<option>
<state>true</state> <label localKey="cwexml.TCMConfig_xml.TasksFilter.allLabel">All</label>
</option>
<option>
<!-- <state>true</state> -->
<label localKey="cwexml.TCMConfig_xml.TasksFilter.openLabel">Open</label>
<value type="xml">
<conditions>
<condition id="byProperty" type="task" operation="lt">
<propsymname>TaskState</propsymname>
<propvalue type="integer">8</propvalue>
</condition>
</conditions>
</value>
</option>
change: <label localKey="cwexml.TCMConfig_xml.TasksFilter.next7Label">Next 7 days</label>
to: <label localKey="cwexml.TCMConfig_xml.TasksFilter.next7Label">Next Week</label>
change: cwexml.TCMConfig_xml.TasksFilter.next7Label=Next 7 days
to: cwexml.TCMConfig_xml.TasksFilter.next7Label=Next Week
<!-- <option>
<label localKey="cwexml.TCMConfig_xml.TasksFilter.closedLabel">Closed</label>
<value type="xml">
<conditions>
<condition id="byProperty" type="task">
<propsymname>TaskState</propsymname>
<propvalue type="integer">8</propvalue>
</condition>
</conditions>
</value>
</option> -->
You can add your own custom list items by inserting additional code into the same section. In the case of list filters, you will be filtering based on various properties of the collaboration objects, so you need to have an understanding of the collaboration objects and their properties. Refer to the Collaboration Developer's Guide for more information on designing the filter logic.
Below is an example of how you could add a new item to the list filters:
<option> <label localKey="cwexml.TCMConfig_xml.TasksFilter.myNewOptionLabel">My New Option</label> <value type="xml"> <conditions> Conditions that define the new filter go here.
Refer to the Collaboration Developer's Guide for proper syntax. </conditions> </value> </option>
You would also add the key to the label to the resource file, cwexml.strings.<locale>.prb:
cwexml.TCMConfig_xml.TasksFilter.myNewOptionLabel=My New Option