Skip to main content
1-Visitor
Jun 30, 2014 6:46 AM UTC
Solved

Action validator for standard windchill actions

Hi.

I need to hide "relatedPartsDocuments" and "relatedPartsCADDocuments" tables from info page of wtpart softtype (an only for this softtype).

How should i define UIComponentValidator not to brake standard behavior of these tables?

I know how i can get action name and softtype id in UIComponentValidator. The question is how not to affect standard display settings for other softtypes?

Thanks.

1-Visitor
Jun 30, 2014 8:46 AM UTC

Should i extend RelatedItemsPartsValidator instead of DefaultUIComponentValidator ?

6 replies

VasiliyRepecki1-VisitorAuthorAnswer
1-Visitor
Jun 30, 2014 8:46 AM UTC

Should i extend RelatedItemsPartsValidator instead of DefaultUIComponentValidator ?

Translate
1-Visitor
Jul 14, 2014 2:23 PM UTC

Hi Vasiliy,

Could you clarify how this is the correct answer for the rest of the community?

Thank you,

Jarrett

Translate
1-Visitor
Jul 15, 2014 5:38 AM UTC

public class RelatedItemsTablesValidator extends RelatedItemsPartsValidator

{

public UIValidationResultSet performFullPreValidation(UIValidationKey cUIValidationKey,

UIValidationCriteria cUIValidationCriteria,

Locale cLocale) throws WTException

{

UIValidationResultSet resultSet;

if(my conditions)

{

resultSet = ..;

}

else

{

resultSet = super.performFullPreValidation(cUIValidationKey, cUIValidationCriteria, cLocale);

}

}

}

Translate