Академический Документы
Профессиональный Документы
Культура Документы
TODD BALTES
Simple Validation filters are a powerful way to control individual actions available in the PTC Windchill
10.2 environment. Filtering actions with custom simple validation filters allows you to specify the
conditions that determine when an action will be available to the user. For more information, see
Implementing Validation Filters in the PTC Windchill 10.2 Customizers Guide.
Creating custom filters is not difficult, but it requires some Java code as well as some PTC Windchill
configuration. This document outlines the steps needed to create, register, and apply a custom simple
validation filter.
Create a Custom Simple Validation Filter in PTC Windchill
To create the filter, you will need to extend the PTC Windchill abstract filter class
DefaultSimpleValidationFilter, and implement the preValidateAction method. This method will return
a UIValidationStatus that determines the state of the action enabled, disabled, or hidden.
Here is a simple example that enables an action for End Item WTParts: