Editing the XML of a view to alter the criteria to include AND instead of OR
Another time when some XML editing comes in handy is when you're trying to create some more customized views. Sure, you're able to create views from the console, but the Create View dialogue doesn't allow you to do things such as renaming column headers, set the order of columns, or something as simple as creating a view criteria that includes the same property twice, constructed with an AND instead of OR.
In this recipe, we will do just that - modify the view criteria through some XML editing so it is constructed with an AND instead of an OR.
Getting ready
In order to follow this recipe you will need to create a view from the console for us to edit in XML:
- Start the Service Manager console and go to the Work Item workspace.
- Right-click Incident Management and select Create View.
- As the Name of the view, enter All Active Incidents and select a management pack to store the view in.
- Click on Criteria on the...