It can be useful to focus the task being worked on in the workspace to a dataset, such as a specific vehicle group. Workspaces have the ability to implement an interface that automatically filters the data presented on the workspace. This recipe follows on from the previous recipe.
Adding a filter to a workspace
How to do it...
To add filters, follow these steps:
- On the Design node, right-click on Design and choose New | Group.
- Move it to the top (Alt + Arrow is useful) and apply the Workspace Page Filter Group pattern. Name it WorkspacePageFilterGroup.
- Add a new String control and name it VehicleGroupFilter. Change the Extended Data Type property to ConVMSVehicleGroupId and set Auto Declaration to Yes.
- Expand Methods and...