Skip to main content
1-Visitor
June 30, 2014
Solved

Action validator for standard windchill actions

  • June 30, 2014
  • 6 replies
  • 3341 views

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.

Best answer by VasiliyRepecki

Should i extend RelatedItemsPartsValidator instead of DefaultUIComponentValidator ?

6 replies

VasiliyRepecki1-VisitorAuthorAnswer
1-Visitor
June 30, 2014

Should i extend RelatedItemsPartsValidator instead of DefaultUIComponentValidator ?

1-Visitor
July 14, 2014

Hi Vasiliy,

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

Thank you,

Jarrett

1-Visitor
July 15, 2014

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);

}

}

}