cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Your Friends List is a way to easily have access to the community members that you interact with the most! X

Action validator for standard windchill actions

VasiliyRepecki
12-Amethyst

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.

ACCEPTED SOLUTION

Accepted Solutions

Should i extend RelatedItemsPartsValidator instead of DefaultUIComponentValidator ?

View solution in original post

6 REPLIES 6

Should i extend RelatedItemsPartsValidator instead of DefaultUIComponentValidator ?

Hi Vasiliy,

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

Thank you,

Jarrett

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

}

}

}

Hi,

You have to use typebased builder to make it specific to SoftType

Hi

I know nothing about "typebased builder"

KD
12-Amethyst
12-Amethyst
(To:VasiliyRepecki)

Alternatively you can use this condition to filter sub-type

if(( TypeIdentifierHelper.getType(localWTDocument).toString().equals("WCTYPE|wt.doc.WTDocument|

com.ITCINFOTECH.Agenda ")))//internal name of your subtype

Thanks And Regards,

Kaushik

Announcements


Top Tags